Skip to content

Commit

Permalink
document behavior of block tag in if block
Browse files Browse the repository at this point in the history
closes #423
  • Loading branch information
davidism committed Oct 18, 2019
1 parent a554288 commit aad4dcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/templates.rst
Expand Up @@ -370,6 +370,10 @@ In this example, the ``{% block %}`` tags define four blocks that child template
can fill in. All the `block` tag does is tell the template engine that a
child template may override those placeholders in the template.

``block`` tags can be inside other blocks such as ``if``, but they will
always be executed regardless of if the ``if`` block is actually
rendered.

Child Template
~~~~~~~~~~~~~~

Expand Down

0 comments on commit aad4dcf

Please sign in to comment.