Skip to content
Myr

documented set changes

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 a11366e · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/templates.rst+3 added-3 removed
623 unmodified lines
624Inside code blocks you can also assign values to variables. Assignments at625top level (outside of blocks, macros or loops) are exported from the template626like top level macros and can be imported by other templates.627628Assignments are just written in code blocks like any other statement just629without explicit keyword::628Assignments use the `set` tag and can have multiple targets::629631 {% navigation = [('index.html', 'Index'), ('about.html', 'About')] %}630 {% set navigation = [('index.html', 'Index'), ('about.html', 'About')] %}631 {% set key, value = call_something() %}632633634Extends635~~~~~~~
386 unmodified lines