Closed ctittel closed 3 years ago
Sorry if this already explained somewhere.
In my template.html.p I have the following line:
template.html.p
◊(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):
index.html
ullihellolihellolihello
For testing I also put the same code into index.html.pm. In this case it works correctly and maps to
index.html.pm
<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?
.p
Does ◊(->html (apply ul (for/list ([ii (list 1 2 3)]) ◊li{hello}))) work?
◊(->html (apply ul (for/list ([ii (list 1 2 3)]) ◊li{hello})))
Thank you, this works perfectly!
Sorry if this already explained somewhere.
In my
template.html.p
I have the following line:In the output (
index.html
) this maps to (no HTML, not what I want):For testing I also put the same code into
index.html.pm
. In this case it works correctly and maps toHow do I get the code in the
.p
file to also return HTML Expressions?