title: Looping over a tuple in jinja2
body: <p>I have a list of date in format ['DD', 'MM', 'YYYY'], and saved it to a tuples called listdates [['DD', 'MM', 'YYYY'], ['DD', 'MM', 'YYYY']]</p>
  
  <p>I wanted to make a html like this</p>
  
  <pre><code>&lt;li class="year"&gt;
      &lt;a href="#"&gt;2013&lt;/a&gt;
      &lt;ul&gt;
      &lt;li class="month"&gt;
          &lt;a href="#"&gt;11&lt;/a&gt;
          &lt;ul&gt;
              &lt;li class="day"&gt;01&lt;/li&gt;
              &lt;li class="day"&gt;02&lt;/li&gt;
              &lt;li class="day"&gt;03&lt;/li&gt;
              ...
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li class="month"&gt;
          &lt;a href="#"&gt;12&lt;/a&gt;
          &lt;ul&gt;
              &lt;li class="day"&gt;01&lt;/li&gt;
              &lt;li class="day"&gt;02&lt;/li&gt;
              ...
          &lt;/ul&gt;
       &lt;/li&gt;
       &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I've tried this for a day but hasn't found a way. Is there an easy way to do this ? or should I change the data structure ?</p>