Open ghost opened 8 years ago
Could we implement the with extension from jinja2? http://jinja.pocoo.org/docs/dev/extensions/#with-extension
with
Additional information: http://jinja.pocoo.org/docs/dev/templates/#with-statement http://stackoverflow.com/questions/9404990/how-to-pass-selected-named-arguments-to-jinja2s-include-context
Duplicated: https://github.com/mozilla/nunjucks/issues/539
Meanwhile, in most cases it's possible to use macro instead of include.
macro
include
Could we implement the
with
extension from jinja2? http://jinja.pocoo.org/docs/dev/extensions/#with-extensionAdditional information: http://jinja.pocoo.org/docs/dev/templates/#with-statement http://stackoverflow.com/questions/9404990/how-to-pass-selected-named-arguments-to-jinja2s-include-context