Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block assignment filters do not work #1422

Open
dhruvkb opened this issue Nov 22, 2022 · 0 comments
Open

Block assignment filters do not work #1422

dhruvkb opened this issue Nov 22, 2022 · 0 comments

Comments

@dhruvkb
Copy link

dhruvkb commented Nov 22, 2022

Jinja supports block assignment since v2.8 and block assignment filters since v2.10. The latter is missing from Nunjucks and should be supported.

For example, the template below

{% set content | indent(2, true) %}
This is some text

and this is some text
{% endset %}
{{ content }}

when rendering, raises the error

Uncaught:
Template render error: (unknown path) [Line 1, Column 4]
  parseSet: expected = or block end in set tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant