# HG changeset patch # User cmlenz # Date 1213006020 0 # Node ID 87dc067bd92b1aedafe67934e49a7dd9a0744fca # Parent f9544a7cc57a6611b10ac4bff26b443904101fe9 Clarify description of the `py:if` directive. diff --git a/doc/xml-templates.txt b/doc/xml-templates.txt --- 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 @@ Hello +But setting ``foo=False`` would result in the following output: + +.. code-block:: xml + +
+
+ This directive can also be used as an element: .. code-block:: genshi