title: How to get list in a list in jinja2 template
body: <p>In Flask,</p>
  
  <pre><code>@app.route('/test')
  def test():
      test = ['a','b','c','d','e','f','g',['1','2','3']]
      return render_template('test.html',data=test)
  </code></pre>
  
  <p>here is my template :</p>
  
  <pre><code>{% for item in data %}
  &lt;tr&gt;
    &lt;td&gt;{{item.0}}&lt;/td&gt; 
    &lt;td&gt;{{item.1}}&lt;/td&gt;  
    &lt;td&gt;{{item.2}}&lt;/td&gt;
    &lt;td&gt;{{item.3}}&lt;/td&gt; 
    &lt;td&gt;{{item.4}}&lt;/td&gt;  
    &lt;td&gt;{{item.5}}&lt;/td&gt;
    &lt;td&gt;{{item.6}}&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td colspan="5"&gt;{{ item[7][0]}}&lt;/td&gt;
    &lt;td&gt;{{ item[7][1]}}&lt;/td&gt;
    &lt;td&gt;{{ item[7][2]}}&lt;/td&gt;
  &lt;/tr&gt;
  {% endfor %}
  </code></pre>
  
  <p>But always getting error:</p>
  
  <pre><code>jinja2.exceptions.UndefinedError: str object has no element 7
  </code></pre>
  
  <p>How to get the list in list?</p>
  
  <p>Looks like <code>jinja2</code> need string, but it can't regonize python <code>item[7][0]</code> format.
  I also tried <code>item.7.0</code> and <code>item.7[0]</code> , but same error.</p>
  
  <p>Thanks!</p>