Mercurial > genshi > mirror
changeset 746:25d6cd05746c trunk
Clarify description of the `py:if` directive.
author | cmlenz |
---|---|
date | Mon, 09 Jun 2008 10:07:00 +0000 |
parents | 74b5c5476ddb |
children | 7f85068e4feb 8718e1e94c1c |
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