add escape character for output file extensions
#41
Closed
opened 10 years ago by mbutterick
·
1 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
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 usehello!html.pm
. This would be recognized as a source file with a single extension, and then after rendering it would becomehello.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.
Done (though there is apparently more to the problem on OS X — see issue #34)