Open mathiasschopmans opened 9 years ago
@mathiasschopmans Great suggestion, this would simplify the implemenation of code example boxes like the one below (from the Primer CSS documentation) while keeping your code DRY.
Is there any way around this? Force block
work inside a filter...
mixin highlight(lang = 'html')
pre
code(class=lang)
:escape-html:html-beautify:pug
block
"jstransformer-escape-html": "~1.1.0",
"jstransformer-html-beautify": "0.0.1",
"jstransformer-pug": "~0.3.0",
I'm using Jade as a static prototype generator and would like to render some html-docs for my custom components, mixins, snippets to support my colleagues, which are integrating my html templates into different CMS.
helpers.jade
usage.jade
:examplehtml
should be a basic jade wrapper which will return the rendered, but escaped html.:examplejade
will be a basic wrapper to return the escaped jadeDo you know how to access the block from filters?
Thank you!