Skip to content
Myr

fixed bug in jinja doc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent e71966d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/src/scopes.txt+1 added-1 removed
168 unmodified lines
169Normally you cannot override a variable from an outer scope, you can just hide170it. There is however a way to override a variable from an outer scope using the171`set` tag, postfixed with a bang (!):172173.. source:: jinja173.. sourcecode:: jinja174175 {% set last_item = none %}176 {% for item in seq %}177 {% set last_item = item! %}
7 unmodified lines