[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/genshi.txt Checking in a simplified version of Chris' interpolation test.

Malthe Borch mborch at gmail.com
Tue Sep 2 04:34:04 EDT 2008


Log message for revision 90683:
  Checking in a simplified version of Chris' interpolation test.

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-09-02 08:33:18 UTC (rev 90682)
+++ z3c.pt/trunk/src/z3c/pt/genshi.txt	2008-09-02 08:34:04 UTC (rev 90683)
@@ -222,18 +222,19 @@
   ...   <span>${'a'}${'b'}${'c'} ${'d'}</span>
   ...   <span py:with="hello='Hello'" class="${hello} World!" />
   ...   <span class="my-${'class'} item${'Last'}" />
+  ...   <a href="${ltr.href}" class="${ltr.iscurrent}">${ltr.letter}</a>
   ...   <span style="position: ${'abs'}olute"
   ...         class="my-${int('test') | 'class'} item${'Last'}" />
-  ... </div>""")
+  ... </div>""", ltr={'letter': 'A', 'href': '?title=A', 'iscurrent': 'current'})
     <div>
       <span>interpolation</span>is convenient!
       <span>abc d</span>
       <span class="Hello World!" />
       <span class="my-class itemLast" />
+      <a href="?title=A" class="current">A</a>
       <span style="position: absolute" class="my-class itemLast" />
     </div>
 
-
 :: Simple variable names do not need { .. }. From `py:with specs`_.
 
   >>> print render_genshi("""\
@@ -277,7 +278,6 @@
     <img alt="La Peña" />
   </div>
 
-
 :: Variables containing quotes
   >>> print render_genshi("""\
   ... <div xmlns="http://www.w3.org/1999/xhtml">



More information about the Checkins mailing list