[Checkins] SVN: Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt Add a failing test

Wichert Akkerman wichert at wiggy.net
Wed Nov 19 17:10:04 EST 2008


Log message for revision 93148:
  Add a failing test

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-11-19 22:09:17 UTC (rev 93147)
+++ Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.txt	2008-11-19 22:10:04 UTC (rev 93148)
@@ -93,6 +93,19 @@
   <li>4</li>
   </ul>
 
+py:for with tuples
+
+  >>> print render("""\
+  ... <ul xmlns="http://www.w3.org/1999/xhtml"
+  ...      xmlns:py="http://genshi.edgewall.org/">
+  ...   <li py:for="(key,value) item in dict(one=1,two=2,three=3).items()">${key}=$value</li>
+  ... </ul>""")
+  <ul>
+  <li>one=1</li>
+  <li>two=2</li>
+  <li>three=3</li>
+  </ul>
+
 py:def
 
   >>> print render("""\



More information about the Checkins mailing list