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 scope is different than inline assignment #596
Labels
Comments
davidism
changed the title
Block Assignment is not working!
Block assignment scope is different than inline assignment
Jun 27, 2016
Got this problem too. Simple test:
|
Closed
I'm getting the same inconsistent behavior with the 'with' statment:
these bugs are probably related? |
The with statement is not supposed to work that way, so that's intentional. I cannot reproduce the set issue however independently of this in master. |
Nevermind, I see what this issue is about. |
Changed in 45b59b5 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to set a variable in a child template that will be rendered in the parent template. If I use block assignment, nothing is rendered. If I use inline assignment, it works as expected. I am using Jinja 2.8 with Python 2.
base.html
:bad.html
with block assignment, nothing rendered:good.html
, renders correctly:The text was updated successfully, but these errors were encountered: