Mercurial > genshi > mirror
changeset 726:85ff66a8f453 trunk
Note that py:choose and friends may be used as elements.
author | athomas |
---|---|
date | Sun, 04 May 2008 02:48:03 +0000 |
parents | c2c22f1d26f4 |
children | 9e466c16f40b |
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 =======