Skip to content
Myr

document behavior of block tag in if block

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

closes #423

authored by David Lord · committed by David Lord · parent a554288 · Browse files · 1 file+4 added−0 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−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/templates.rst+4 added
368 unmodified lines
369In this example, the ``{% block %}`` tags define four blocks that child templates370can fill in. All the `block` tag does is tell the template engine that a371child template may override those placeholders in the template.372373``block`` tags can be inside other blocks such as ``if``, but they will374always be executed regardless of if the ``if`` block is actually375rendered.376377Child Template378~~~~~~~~~~~~~~379380A child template might look like this::
1403 unmodified lines