Skip to content
Myr

[svn] Fix a few typos.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Georg Brandl · committed by Georg Brandl · parent 8030a17 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/src/inheritance.txt+4 added-4 removed
94 unmodified lines
9596How Inheritance Works Internally97================================9899Inheritance in Jinja is straighforward. If a template contains a99Inheritance in Jinja is straightforward. If a template contains an100``{% extends %}`` tag it's considered being a child template, otherwise it's101a layout template. In a layout template you can place blocks basically102everywhere. In a child template blocks can only be located either top level103or inside of another block.102everywhere. In a child template blocks can only be located either at the103top level or inside another block.104105Data outside of a block in a child template is executed before the layout106template is rendered, thus you can use it to propagate data to the whole107inheritance chain. Having a block in an invalid position you will receive
10 unmodified lines
118 {% endblock %}119 {% endif %}120121 This can't work because template inheritance works at translation /122 compilation time not at template executation.122 compilation time not at template execution.123124**possible**:125126 .. sourcecode:: jinja
46 unmodified lines