add escape character for output file extensions #41

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

Pollen uses a pattern of filenames with double extensions like hello.html.pm. This example indicates a Pollen source file (pm extension) that compiles to an HTML file (html extension).

Occasionally, however, these double extensions are not handled properly by editors or file dialogs.

The improvement would be to introduce an escape character that would indicate the output file extension and convert it automatically when rendering. For instance, instead of hello.html.pm, Pollen would let you use hello!html.pm. This would be recognized as a source file with a single extension, and then after rendering it would become hello.html as usual.

The escape character would be configurable.

I would not make this the default convention. It would simply be available as a workaround on systems where the double extensions are problematic.

Pollen uses a pattern of filenames with double extensions like `hello.html.pm`. This example indicates a Pollen source file (`pm` extension) that compiles to an HTML file (`html` extension). Occasionally, however, these double extensions are not handled properly by editors or file dialogs. The improvement would be to introduce an escape character that would indicate the output file extension and convert it automatically when rendering. For instance, instead of `hello.html.pm`, Pollen would let you use `hello!html.pm`. This would be recognized as a source file with a single extension, and then after rendering it would become `hello.html` as usual. The escape character would be configurable. I would not make this the default convention. It would simply be available as a workaround on systems where the double extensions are problematic.
mbutterick commented 10 years ago (Migrated from github.com)

Done (though there is apparently more to the problem on OS X — see issue #34)

Done (though there is apparently more to the problem on OS X — see issue #34)
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#41
Loading…
There is no content yet.