Skip to content

Commit af0b32f

Browse files
authored
Add small note about child templates ignoring code outside of a block (#964)
1 parent ae13d7c commit af0b32f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/docs/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ To indicate inheritance, you have to use the `extends` tag as the first thing in
741741
to extend.
742742
The `{{/* super() */}}` variable call tells Tera to render the parent block there.
743743

744+
Please note that in a child template, any content outside of a block will be ignored, including variable assignments.
745+
744746
Nested blocks also work in Tera. Consider the following templates:
745747

746748
```jinja2

0 commit comments

Comments
 (0)