HTML output not matching Quick Start example (rendering literally) #206

Closed
opened 5 years ago by fncll · 5 comments
fncll commented 5 years ago (Migrated from github.com)

I installed Racket 7.3 and Pollen (2.0.2142.1197). When I use the code from the Quick Start to test HTML generation:

#lang pollen
<body style="margin: 5em; border:1px solid black">
5em is the inset.
</body>

The output doesn't match the description, but is instead wrapped in code that displays it literally:

<!DOCTYPE html><html><head><title>Pollen</title><meta charset="UTF-8"/><link rel="stylesheet" type="text/css" href="/poldash.css"/></head><body><tt>&lt;body style="margin: 5em; border:1px solid black"&gt;
5em is the inset.
&lt;/body&gt;</tt><div id="pollen-logo"></div></body></html>

What is going on?

I installed Racket 7.3 and Pollen (2.0.2142.1197). When I use the code from the Quick Start to test HTML generation: ``` #lang pollen <body style="margin: 5em; border:1px solid black"> 5em is the inset. </body> ``` The output doesn't match the description, but is instead wrapped in code that displays it literally: ``` <!DOCTYPE html><html><head><title>Pollen</title><meta charset="UTF-8"/><link rel="stylesheet" type="text/css" href="/poldash.css"/></head><body><tt>&lt;body style="margin: 5em; border:1px solid black"&gt; 5em is the inset. &lt;/body&gt;</tt><div id="pollen-logo"></div></body></html> ``` What is going on?
mbutterick commented 5 years ago (Migrated from github.com)

What is the filename?

What is the filename?
mbutterick commented 5 years ago (Migrated from github.com)

(In this case, the extension needs to be .pp not .pm, because the source contains raw HTML)

(In this case, the extension needs to be `.pp` not `.pm`, because the source contains raw HTML)
fncll commented 5 years ago (Migrated from github.com)

The filename is margin.html.pp -- I am viewing the file using the out link on the dashboard and what I shared above is when I use View Source.

The filename is `margin.html.pp` -- I am viewing the file using the `out` link on the dashboard and what I shared above is when I use View Source.
mbutterick commented 5 years ago (Migrated from github.com)

Right, the out link shows you the literal output of the file, rendered as plain text. If you want to see the output of the file rendered in the browser as HTML, click on the link in the left column called margin.html.pp.

Right, the `out` link shows you the literal output of the file, rendered as plain text. If you want to see the output of the file rendered in the browser as HTML, click on the link in the left column called `margin.html.pp`.
fncll commented 5 years ago (Migrated from github.com)

Sorry, I was being particularly dense!

Sorry, I was being particularly dense!
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#206
Loading…
There is no content yet.