[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/genshi.txt Nested methods can give a syntatx error

Wichert Akkerman wichert at wiggy.net
Thu Aug 21 10:16:08 EDT 2008


Log message for revision 90065:
  Nested methods can give a syntatx error

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-21 13:34:43 UTC (rev 90064)
+++ z3c.pt/trunk/src/z3c/pt/genshi.txt	2008-08-21 14:16:07 UTC (rev 90065)
@@ -394,6 +394,23 @@
   </script>
   </div>
 
+:: Sometimes a function does not return a result
+
+  >>> print render_genshi("""\
+  ... <div xmlns="http://www.w3.org/1999/xhtml"
+  ...       xmlns:py="http://genshi.edgewall.org">
+  ... <ul py:def="rendermenu(menu)" py:if="menu">
+  ...   Menu entry
+  ...   ${rendermenu([])}
+  ... </ul>
+  ... </div>""")
+  <div xmlns="http://www.w3.org/1999/xhtml"
+        xmlns:py="http://genshi.edgewall.org">
+  <ul py:def="rendermenu(menu)" py:if="menu">
+    Menu entry
+  </ul>
+  </div>
+
   
 .. _py:with specs: http://genshi.edgewall.org/wiki/Documentation/0.4.x/xml-templates.html#py-with
 



More information about the Checkins mailing list