]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
clarify block outer scope docs 2060/head
authorDavid Lord <davidism@gmail.com>
Wed, 18 Dec 2024 17:36:11 +0000 (09:36 -0800)
committerDavid Lord <davidism@gmail.com>
Wed, 18 Dec 2024 17:36:11 +0000 (09:36 -0800)
docs/templates.rst

index 0eab8e66461f20dea906dbf4dcbfc52e4a77ac3e..d5f2719e079fde79dda2b5747d68a708c5835c1a 100644 (file)
@@ -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>