changeset 746:87dc067bd92b

Clarify description of the `py:if` directive.
author cmlenz
date Mon, 09 Jun 2008 10:07:00 +0000
parents f9544a7cc57a
children 0001216fa27b 3a456053fa1a
files doc/xml-templates.txt
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/xml-templates.txt
+++ b/doc/xml-templates.txt
@@ -101,7 +101,8 @@
 ``py:if``
 ---------
 
-The element is only rendered if the expression evaluates to a truth value:
+The element and its content is only rendered if the expression evaluates to a
+truth value:
 
 .. code-block:: genshi
 
@@ -118,6 +119,13 @@
     <b>Hello</b>
   </div>
 
+But setting ``foo=False`` would result in the following output:
+
+.. code-block:: xml
+
+  <div>
+  </div>
+
 This directive can also be used as an element:
 
 .. code-block:: genshi
Copyright (C) 2012-2017 Edgewall Software