punch icon indicating copy to clipboard operation
punch copied to clipboard

Support using helpers in .markdown content files

Open sethmcl opened this issue 12 years ago • 1 comments

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?

sethmcl avatar Mar 27 '13 14:03 sethmcl

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.)

adrinux avatar Mar 28 '13 09:03 adrinux