Closed wichert closed 12 years ago
aw, dangit, I forgot that and changed it. oops!
I think that in order to really fix this, I'll have to move the 'url' into configuration...
which I just pushed. v4.0.7. thanks for hammering these out with me!
On Apr 26, 2012, at 12:57 PM, Wichert Akkerman wrote:
strip_extension does not quite do what I hand in mind: I would only like the extension to be stripped form the generated URL, not from the generated filename. The extension has to be set on the filename so a webbrowser can set the right mime-type, but I do not want it in the URL to hide implementation details.
An example: if the input file is
projects.j2
, I would like the generated file to beprojects.html
and the URL to that file to be/projects
.
Reply to this email directly or view it on GitHub: https://github.com/colinta/StrangeCase/issues/11
Doesn't the strange_case.nodes.file.FileNode.url override that config setting?
:-) You're keeping me on my toes, Wichert. One sec.
fixed in v4.0.12
strip_extension does not quite do what I hand in mind: I would only like the extension to be stripped form the generated URL, not from the generated filename. The extension has to be set on the filename so a webbrowser can set the right mime-type, but I do not want it in the URL to hide implementation details.
An example: if the input file is
projects.j2
, I would like the generated file to beprojects.html
and the URL to that file to be/projects
.