summaryrefslogtreecommitdiff
path: root/docs/templates.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/templates.txt')
-rw-r--r--docs/templates.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index a3d60c5400..9b3825f9f7 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -253,6 +253,11 @@ Here are some tips for working with inheritance:
if you want to add to the contents of a parent block instead of
completely overriding it.
+ * You can optionally name your ``{{ endblock }}`` tag with the same name
+ you gave the ``{{ block }}`` tag (for example, ``{{ endblock content }}``).
+ In larger templates this helps you see which ``{{ block }}`` tags are
+ being closed.
+
Finally, note that you can't define multiple ``{% block %}`` tags with the same
name in the same template. This limitation exists because a block tag works in
"both" directions. That is, a block tag doesn't just provide a hole to fill --