Mercurial > genshi > mirror
changeset 725:dfe942b94c2f experimental-optimizer
Note that `py:choose` and friends may be used as elements.
author | athomas |
---|---|
date | Sun, 04 May 2008 02:45:59 +0000 |
parents | 581abd96c9e4 |
children | |
files | doc/xml-templates.txt |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/xml-templates.txt +++ b/doc/xml-templates.txt @@ -178,6 +178,15 @@ <span>1</span> </div> +These directives can also be used as elements: + +.. code-block:: genshi + + <py:choose test="1"> + <py:when test="0">0</py:when> + <py:when test="1">1</py:when> + <py:otherwise>2</py:otherwise> + </py:choose> Looping =======