Thank you! That helped

raco pkg update --update-deps pollen




вторник, 21 ноября 2017 г., 0:02:41 UTC+3 пользователь Matthew Butterick 
написал:
>
>
> On Nov 20, 2017, at 12:39 PM, [email protected] <javascript:> wrote:
>
> Unfortunately in this case the result for
>
> ◊(->html
>   ◊ac:link{
>  ◊ri:attachment[#:ri:filename "atlassian_logo.gif"]{
>   ◊ac:plain-text-link-body{◊as-cdata{Text with <> }}}})
>
> is
> <ac:link><ri:attachment 
> ri:filename="atlassian_logo.gif"><ac:plain-text-link-body>&lt;![CDATA[Text 
> with &lt;&gt; ]]&gt;</ac:plain-text-link-body></ri:attachment></ac:link>
>
>
> That's strange. Did you update your `pollen` like so?
>
> raco pkg update --update-deps pollen
>
>
> I get a different result:
>
> ;;;;;;;;; program
> #lang pollen/pre
> ◊(require pollen/template/html)
>
> ◊(define (as-cdata string)
>    (string-append "<![CDATA[" string "]]>"))
>
> ◊(->html
>   ◊ac:link{
>  ◊ri:attachment[#:ri:filename "atlassian_logo.gif"]{
>   ◊ac:plain-text-link-body{◊as-cdata{Text with <> }}}})
>
>
> ;;;;;;;; result
> <ac:link><ri:attachment 
> ri:filename="atlassian_logo.gif"><ac:plain-text-link-body><![CDATA[Text 
> with <> ]]></ac:plain-text-link-body></ri:attachment></ac:link>
>
>
>
>
>
> but thanks for you example, looking at this, the following idea came me
>
>
> Your code won't work on HTML blocks with more than one CDATA.
>

-- 
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.

Reply via email to