How to set html head tag #260

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

Hello, as per title, how do I set the <head> tag correctly?

Best I got to was using a near-empty template.html with just a ◊(->html ◊doc) in it but it still wraps everything in <root>...</root> which isn't valid html.

What's the correct way of doing this or at least eliminating the root tag?

I'd like to be able to spell out the full html tree without relying on a shared template file.

Thank you for this great project!

Hello, as per title, how do I set the `<head>` tag correctly? Best I got to was using a near-empty `template.html` with just a `◊(->html ◊doc)` in it but it still wraps everything in `<root>...</root>` which isn't valid html. What's the correct way of doing this or at least eliminating the root tag? I'd like to be able to spell out the full html tree without relying on a shared template file. Thank you for this great project!
mbutterick commented 3 years ago (Migrated from github.com)

These two entries in the documentation have the complete answer.

https://docs.racket-lang.org/pollen/second-tutorial.html#%28part.tutorial-2..The_doc_export_and_the_-_html_function%29

https://docs.racket-lang.org/pollen/Template.html#%28def._%28%28lib.pollen%2Ftemplate%2Fhtml..rkt%29.-~3ehtml%29%29

These two entries in the documentation have the complete answer. https://docs.racket-lang.org/pollen/second-tutorial.html#%28part._tutorial-2._.The_doc_export_and_the_-_html_function%29 https://docs.racket-lang.org/pollen/Template.html#%28def._%28%28lib._pollen%2Ftemplate%2Fhtml..rkt%29._-~3ehtml%29%29
gvolk0 commented 3 years ago (Migrated from github.com)

Ah, I somehow missed the module section (I'm new to the whole racket ecosystem) - thanks, sorry for the noise!

Ah, I somehow missed the module section (I'm new to the whole racket ecosystem) - thanks, sorry for the noise!
mbutterick commented 3 years ago (Migrated from github.com)

In Racket documentation, identifiers that appear in sample code like ->html are typically hyperlinked to more detailed documentation.

In Racket documentation, identifiers that appear in sample code like `->html` are typically hyperlinked to more detailed documentation.
gvolk0 commented 3 years ago (Migrated from github.com)

yep, I realised that straight after, thought it was just syntax highlighting.

cheers.

yep, I realised that straight after, thought it was just syntax highlighting. cheers.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
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#260
Loading…
There is no content yet.