punch
punch copied to clipboard
Support using helpers in .markdown content files
Unless I am missing something, it appears that you cannot currently use a helper from a markdown content file. I would like to be able to do something like this:
{{#code}}
var foo = a;
// code examples...
{{/code}}
Where code is a custom helper to style my code examples nicely. Is there a way to do this today? If not, could you consider adding this functionality?
I believe the suggested approach for this right now is to build a custom parser, see this comment https://github.com/laktek/punch/issues/57#issuecomment-12171903
(I share your frustration, it does seem like helpers should work on content as well as templates. Doesn't work that way right now.)