Is it possible to avoid the .html in the Markdown filenames? #438

Closed
nalmeida opened this Issue Feb 26, 2013 · 1 comment

2 participants

@nalmeida

Is it possible to avoid the .html.md in the Markdown filenames?

Instead of:

/posts/my-post.html.md

I would like to use:

/posts/my-post.md
@balupton
DocPad member

Short answer: no.

Long answer: You can use renderSingleExtensions option - see http://docpad.org/docs/config - however that will render my-post.md to my-post.md instead of my-post.html as it is not aware of the extension.

The issue is this, things like coffee can be rendered in different ways, for instance to js using coffeescript or html using coffeekup. We can also want to bundle extension rendering, e.g. html.md.eco. Therefore any ambiguity here is a dangerous.

One option however is to add an extension mapping option that allows us to alias extensions, however that seems like a lot of effort for little reward. If you're importing from another system, it wouldn't be that hard to write a script to rename your extensions.

Give all this, such functionality isn't on our roadmap. I will keep it in mind when considering future architecture changes though. Thanks for the report, closing for now.

@balupton balupton closed this Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment