]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
issue-423 remind not to put block in if statements in doc 1012/head
authoryongbozhang <zhangyongbo0523@gmail.com>
Fri, 31 May 2019 20:37:27 +0000 (16:37 -0400)
committeryongbozhang <zhangyongbo0523@gmail.com>
Sun, 2 Jun 2019 20:27:55 +0000 (16:27 -0400)
docs/templates.rst

index d10d5e6729bb84811a1409ff4b6819e1c914836a..405d6fc2f638f81d7c277d79cf3a5e324e3b7478 100644 (file)
@@ -390,7 +390,9 @@ this template "extends" another template.  When the template system evaluates
 this template, it first locates the parent.  The extends tag should be the
 first tag in the template.  Everything before it is printed out normally and
 may cause confusion.  For details about this behavior and how to take
-advantage of it, see :ref:`null-master-fallback`.
+advantage of it, see :ref:`null-master-fallback`. Also a block will always be
+filled in regardless of whether the surrounding condition is evaluated to be true 
+or false.
 
 The filename of the template depends on the template loader.  For example, the
 :class:`FileSystemLoader` allows you to access other templates by giving the