8000 Fixed #12008 -- Clarified relationship between template blocks and in… · alex-python/django@80b8d3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 80b8d3b

Browse files
ConorMcGeetimgraham
authored andcommitted
Fixed django#12008 -- Clarified relationship between template blocks and includes.
Thanks Daniele Procida for suggested wording.
1 parent 303a848 commit 80b8d3b

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
@@ -700,6 +700,11 @@ available to the included template::
700700
This means that there is no shared state between included templates --
701701
each include is a completely independent rendering process.
702702

703+
Blocks are evaluated *before* they are included. This means that a template
704+
that includes blocks from another will contain blocks that have *already
705+
been evaluated and rendered* - not blocks that can be overridden by, for
706+
example, an extending template.
707+
703708
See also: :ttag:`{% ssi %}<ssi>`.
704709

705710
.. templatetag:: load

0 commit comments

Comments
 (0)
0