title: Genshi: Nested for loops
body: <p>I need to generate a HTML using a Genshi template. The Html is, basicaly a very long html with tables. The data comes in a simple CSV, so, i read it with python, i put it into a list[] and then i call the template and send the variable (the list)</p>
  
  <p>Actually i solved it by doing something like this in the template:</p>
  
  <pre><code>&lt;html&gt;
  &lt;?python&gt;
      for i in t:
         for e in tp[i]:
             print "&lt;SOME_HTML_TAGS&gt;"
  &lt;/?&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But, the idea is to use the Genshi funcions (such as loops, etc)</p>
  
  <p>I read the manual, and I see that a simple for is done like this:</p>
  
  <pre><code>&lt;li py:for="fruit in fruits"&gt;      
  I like ${fruit}s                   
  &lt;/li&gt;    
  </code></pre>
  
  <p>But, how do i do a loop inside a loop (nested for loops)???                          </p>