Skip to content
Myr

clarify block outer scope docs

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

authored by David Lord · committed by David Lord · parent c667d56 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/templates.rst+2 added-2 removed
526 unmodified lines
527528Block Nesting and Scope529~~~~~~~~~~~~~~~~~~~~~~~530531Blocks can be nested for more complex layouts. However, by default blocks532may not access variables from outer scopes::531Blocks can be nested for more complex layouts. By default, a block may not532access variables from outside the block (outer scopes)::533534 {% for item in seq %}535 <li>{% block loop_item %}{{ item }}{% endblock %}</li>536 {% endfor %}
1426 unmodified lines