You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit this bug in two different ways, and I don't know if they have separate fixes or not.
The easy reproduction is, even accounting for the lack of positional-only arguments, passing a variable named self to Template.render does not work.
The more involved reproduction is, if there is a variable named self in some context, (I encountered this in a macro, but presumably {% set self = "whatever" %} would also work), then unlike other names, it is not visible in an {% include "blah" %}.
I hit this bug in two different ways, and I don't know if they have separate fixes or not.
The easy reproduction is, even accounting for the lack of positional-only arguments, passing a variable named
self
toTemplate.render
does not work.The more involved reproduction is, if there is a variable named
self
in some context, (I encountered this in a macro, but presumably{% set self = "whatever" %}
would also work), then unlike other names, it is not visible in an{% include "blah" %}
.Output with
Jinja2==3.1.4
:Expected output:
Environment:
The text was updated successfully, but these errors were encountered: