[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/genshi.txt Add a test for simple variable expansion
Wichert Akkerman
wichert at wiggy.net
Sat Aug 16 04:35:40 EDT 2008
Log message for revision 89908:
Add a test for simple variable expansion
Changed:
U z3c.pt/trunk/src/z3c/pt/genshi.txt
-=-
Modified: z3c.pt/trunk/src/z3c/pt/genshi.txt
===================================================================
--- z3c.pt/trunk/src/z3c/pt/genshi.txt 2008-08-16 08:13:26 UTC (rev 89907)
+++ z3c.pt/trunk/src/z3c/pt/genshi.txt 2008-08-16 08:35:39 UTC (rev 89908)
@@ -248,6 +248,20 @@
<span style="position: absolute" class="my-class itemLast" />
</div>
+
+:: Simple variable names do not need { .. }
+
+ >>> print render_genshi("""\
+ ... <div xmlns="http://www.w3.org/1999/xhtml"
+ ... xmlns:py="http://genshi.edgewall.org">
+ ... <span py:with="y=7; z=x+10">$x $y $z</span>
+ ... </div>""", x=42)
+ <div>
+ <span>42 7 52</span>
+ </div>
+
+
+
:: Genshi variable interpolation and unicode values
>>> print render_genshi("""\
More information about the Checkins
mailing list