Project server shows .pmd but renders .pp #216

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

Steps to reproduce

  • Save the downtown example from the quick tour (or any other .pmd file) in a directory as both downtown.html.pmd and downtown.html.pp.
  • Open the project server dashboard. Only downtown.html.pmd is shown.
  • View the rendered file. It's Markdown source instead of rendered HTML. The server logs confirm: pollen: rendering /downtown.html.pp.

The same behavior happens if we replace downtown.html.pp with downtown.html.p.

Expected behavior

The rendered file matches the name of file shown in the dashboard. And perhaps all Pollen files are supposed to show in the dashboard?

## Steps to reproduce * Save the downtown example from the quick tour (or any other `.pmd` file) in a directory as both `downtown.html.pmd` and `downtown.html.pp`. * Open the project server dashboard. Only `downtown.html.pmd` is shown. * View the rendered file. It's Markdown source instead of rendered HTML. The server logs confirm: `pollen: rendering /downtown.html.pp`. The same behavior happens if we replace `downtown.html.pp` with `downtown.html.p`. ## Expected behavior The rendered file matches the name of file shown in the dashboard. And perhaps all Pollen files are supposed to show in the dashboard?
mbutterick commented 5 years ago (Migrated from github.com)

No, the project-server dashboard only shows output files. Your test case is mischievous because it creates a deliberate ambiguity: you have multiple source files that produce the same output file. Though I think this deserves to be classified as UB, I can fix it so that ambiguities are resolved consistently.

No, the project-server dashboard only shows output files. Your test case is mischievous because it creates a deliberate ambiguity: you have multiple source files that produce the same output file. Though I think this deserves to be classified as UB, I can fix it so that ambiguities are resolved consistently.
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#216
Loading…
There is no content yet.