8000 [1.7.x] Fixed #12008 -- Clarified relationship between template block… · alex-python/django@b729ef0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b729ef0

Browse files
ConorMcGeetimgraham
authored andcommitted
[1.7.x] Fixed django#12008 -- Clarified relationship between template blocks and includes.
Thanks Daniele Procida for suggested wording. Backport of 80b8d3b from master
1 parent 813954f commit b729ef0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/ref/templates/builtins.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,11 @@ available to the included template::
738738
This means that there is no shared state between included templates --
739739
each include is a completely independent rendering process.
740740

741+
Blocks are evaluated *before* they are included. This means that a template
742+
that includes blocks from another will contain blocks that have *already
743+
been evaluated and rendered* - not blocks that can be overridden by, for
744+
example, an extending template.
745+
741746
See also: :ttag:`{% ssi %}<ssi>`.
742747

743748
.. templatetag:: load

0 commit comments

Comments
 (0)
0