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

Closed
opened 4 years ago by ctittel · 2 comments
ctittel commented 4 years ago (Migrated from github.com)

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?

Sorry if this already explained somewhere. In my `template.html.p` I have the following line: ```lisp ◊(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 ```html <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 4 years ago (Migrated from github.com)

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

Does `◊(->html (apply ul (for/list ([ii (list 1 2 3)]) ◊li{hello})))` work?
ctittel commented 4 years ago (Migrated from github.com)

Thank you, this works perfectly!

Thank you, this works perfectly!
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen-users#110
Loading…
There is no content yet.