Skip to content
Myr

Merge pull request #1012 from yongbozhang/issue-423

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

Remind not to put block in if statements in doc

authored by Joshua Bronson · committed by GitHub · parents 7a6f97c, 273d8b1 · Browse files · 1 file+3 added−1 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:docs/templates.rst+3 added-1 removed
388 unmodified lines
389this template "extends" another template. When the template system evaluates390this template, it first locates the parent. The extends tag should be the391first tag in the template. Everything before it is printed out normally and392may cause confusion. For details about this behavior and how to take393advantage of it, see :ref:`null-master-fallback`.393advantage of it, see :ref:`null-master-fallback`. Also a block will always be394filled in regardless of whether the surrounding condition is evaluated to be true 395or false.396397The filename of the template depends on the template loader. For example, the398:class:`FileSystemLoader` allows you to access other templates by giving the399filename. You can access templates in subdirectories with a slash::
1271 unmodified lines