[Checkins] SVN: Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt I seem to have created a test that never completes...
Wichert Akkerman
wichert at wiggy.net
Tue Oct 7 06:24:17 EDT 2008
Log message for revision 91841:
I seem to have created a test that never completes...
Changed:
U Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt
-=-
Modified: Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt
===================================================================
--- Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt 2008-10-07 10:17:03 UTC (rev 91840)
+++ Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt 2008-10-07 10:24:17 UTC (rev 91841)
@@ -436,7 +436,7 @@
</div>
- You can use a loop variable with py:choose:
+:: You can use a loop variable with py:choose
>>> print render("""\
... <html xmlns="http://www.w3.org/1999/xhtml"
@@ -466,4 +466,18 @@
</html>
+:: Text is not interpolated unless necessary
+ >>> print render("""\
+ ... <html xmlns="http://www.w3.org/1999/xhtml"
+ ... xmlns:py="http://genshi.edgewall.org/">
+ ... <body py:with="form_errors=''">
+ ... <em py:if="'name' in form_errors">${form_errors{'name'}</em>
+ ... </body>
+ ... </html>""")
+ <html>
+ <body>
+ </body>
+ </html>
+
+
.. _py:with specs: http://genshi.edgewall.org/wiki/Documentation/0.4.x/xml-templates.html#py-with
More information about the Checkins
mailing list