[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/genshi.txt For some reason some data is disappearing

Wichert Akkerman wichert at wiggy.net
Sat Aug 16 10:12:08 EDT 2008


Log message for revision 89912:
  For some reason some data is disappearing

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:58:39 UTC (rev 89911)
+++ z3c.pt/trunk/src/z3c/pt/genshi.txt	2008-08-16 14:12:06 UTC (rev 89912)
@@ -235,7 +235,6 @@
 :: Simple variable names do not need { .. }. From `py:with specs`_.
 
 
-
   >>> print render_genshi("""\
   ... <div xmlns="http://www.w3.org/1999/xhtml"
   ...      xmlns:py="http://genshi.edgewall.org">
@@ -315,6 +314,23 @@
       /* ]]> */
     </div>
 
+:: z3c.pt used to forget to output the ]; after the for loop
 
+  >>> print render_genshi("""\
+  ... <script xmlns="http://www.w3.org/1999/xhtml"
+  ...         xmlns:py="http://genshi.edgewall.org"
+  ...         type="text/javascript">
+  ...  var brands = [
+  ...  <py:for each="brand in []">
+  ...    { value :  "${brand['id']}", "title" : "${brand['title']}" },
+  ...  </py:for>
+  ...  ];
+  ... </script>""")
+  <script type="text/javascript">
+  var brands = [
+  ];
+  </script>
+
+
 .. _py:with specs: http://genshi.edgewall.org/wiki/Documentation/0.4.x/xml-templates.html#py-with
 



More information about the Checkins mailing list