colinta / StrangeCase

It's yet another static site generator. Have you seen jekyll? hyde? Yup. Like those.
http://colinta.com/projects/StrangeCase.html
Other
49 stars 7 forks source link

strip_extension does the wrong thing #11

Closed wichert closed 12 years ago

wichert commented 12 years ago

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 be projects.html and the URL to that file to be /projects.

colinta commented 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 be projects.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

wichert commented 12 years ago

Doesn't the strange_case.nodes.file.FileNode.url override that config setting?

colinta commented 12 years ago

:-) You're keeping me on my toes, Wichert. One sec.

colinta commented 12 years ago

fixed in v4.0.12