clarify block outer scope docs
This commit is contained in:
parent
c667d56de3
commit
786d12b529
@ -528,8 +528,8 @@ However, the name after the `endblock` word must match the block name.
|
||||
Block Nesting and Scope
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Blocks can be nested for more complex layouts. However, by default blocks
|
||||
may not access variables from outer scopes::
|
||||
Blocks can be nested for more complex layouts. By default, a block may not
|
||||
access variables from outside the block (outer scopes)::
|
||||
|
||||
{% for item in seq %}
|
||||
<li>{% block loop_item %}{{ item }}{% endblock %}</li>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user