mbutterick / pollen-users

please use https://forums.matthewbutterick.com/c/typesetting/ instead
https://forums.matthewbutterick.com/c/typesetting/
53 stars 0 forks source link

S-Expressions in template.html.p not mapped to tagged X-Expressions in HTML output #110

Closed ctittel closed 3 years ago

ctittel commented 3 years ago

Sorry if this already explained somewhere.

In my template.html.p I have the following line:

◊(apply ul (for/list ([ii (list 1 2 3)]) ◊li{hello}))

In the output (index.html) this maps to (no HTML, not what I want):

ullihellolihellolihello

For testing I also put the same code into index.html.pm. In this case it works correctly and maps to

<ul><li>hello</li><li>hello</li><li>hello</li></ul>

How do I get the code in the .p file to also return HTML Expressions?

sorawee commented 3 years ago

Does ◊(->html (apply ul (for/list ([ii (list 1 2 3)]) ◊li{hello}))) work?

ctittel commented 3 years ago

Thank you, this works perfectly!