Templates with no extension


(Aaron Ellington) #1

I have a question about the markdown directive and the ext option. I got it working when using the default .md ext. But I want to be able to use it with no extension.

Works: http://localhost:2222/blog/test.md
Does not work (404): http://localhost:2222/blog/test

Is this possible? I’ve tried a few things but no luck. Any suggestions?


(Matt Holt) #2

I use the ext directive with templates like this:

ext .html
templates

And then my template files have .html extensions but the URL doesn’t. Works similarly for .md and the markdown directive, I believe.


(Aaron Ellington) #3

Perfect, thank you!


(system) #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.