Closed UnknownPlatypus closed 5 months ago
Add support for the following jinja blocks set / trans / raw.
set
trans
raw
I added tests cases using code samples from the jinja documentation about these tags.
I would also like to add support for custom blocks such as {% markdown %}...{% endmarkdown %} (https://github.com/jpsca/jinja-markdown).
{% markdown %}...{% endmarkdown %}
Would it be okay to add a custom_blocks configuration allowing people to list custom block they use ? I'm not sure how often this is used in jinja but it's quite common in django (See django documentation on how to implement custom blocks)
custom_blocks
Okay makes sense, maybe it could be a simple comma delimited string such as "customBlocks": "myblock,markdown"
"customBlocks": "myblock,markdown"
Add support for the following jinja blocks
set
/trans
/raw
.I added tests cases using code samples from the jinja documentation about these tags.
I would also like to add support for custom blocks such as
{% markdown %}...{% endmarkdown %}
(https://github.com/jpsca/jinja-markdown).Would it be okay to add a
custom_blocks
configuration allowing people to list custom block they use ? I'm not sure how often this is used in jinja but it's quite common in django (See django documentation on how to implement custom blocks)