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

Jinja2: Variable assignments in "set" tags are shown as error #1010

Closed
m3adow opened this issue Oct 4, 2018 · 0 comments
Closed

Jinja2: Variable assignments in "set" tags are shown as error #1010

m3adow opened this issue Oct 4, 2018 · 0 comments

Comments

@m3adow
Copy link

m3adow commented Oct 4, 2018

This is probably the source for #881 as well.

While it is totally valid to assign variables within {% set %} tags (see Jinjas Template Designer Documentation), this will be rendered as error by Rouge.

This can easily be reproduced by testing a snippet from the Jinja 2 documentation on Rouges home page:

{% set navigation = [('index.html', 'Index'), ('about.html', 'About')] %}

Result: http://rouge.jneen.net/pastes/LQWe

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