By multiple passes, I simply mean chaining decoding functions together,
like this.
(define (root . elements)
((compose1 decoder-1 decoder-2 decoder-3 ...)
(txexpr '@ empty elements)))
(define (decoder-1 tx)
(decode tx
#:txexpr-proc FOO
#:string-proc BAR
...))
(define (decoder-2 tx)
(decode tx
#:txexpr-proc FOO
#:string-proc BAR
...))
(define (decoder-3 tx)
(decode tx
#:txexpr-proc FOO
#:string-proc BAR
...))
...
On Mon, Feb 18, 2019 at 4:24 AM alexis.dieu via Pollen <
[email protected]> wrote:
> (smart-quotes (txexpr '@ empty elements)) seems to do the job. Thank you
> very much for your explanation.
>
> By the way, I've been looking for a way to do multiple pass on a pollen
> markup file, but I cannot find anything about it on the documentation (
> https://docs.racket-lang.org/search/index.html?q=decode%20pass doesn't
> give any result) could you give me a link?
>
> ~Alex
>
> --
> You received this message because you are subscribed to the Google Groups
> "Pollen" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.