From 786d12b529a2ecf1e2fb586a619a79e2650a6d4d Mon Sep 17 00:00:00 2001 From: David Lord Date: Wed, 18 Dec 2024 09:36:11 -0800 Subject: [PATCH] clarify block outer scope docs --- docs/templates.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/templates.rst b/docs/templates.rst index 0eab8e66..d5f2719e 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -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 %}
  • {% block loop_item %}{{ item }}{% endblock %}
  • -- 2.47.2