I'm trying to parse markdown files stored on the server, and display them inside EE templates in a nice automatic fashion.
My first idea was to read the files using Stash, then parse them using Smartdown. However, I have run into a problem:
Stash assumes the files have an extension of .html
. If I use this:
{exp:stash:get name="index.md" file="yes"}
I get the error:
Stash: the file "/path/to/stash/index.md.html" was not found.
Is there a way to tell Stash not to automatically add the .html
extension?
Alternatively, is there another easy way to read in files (and cache them)?