title: passing list to template in bottle
body: <p>I have a list consist of post information as list of tuples (list consist of tuples) 
  but I faced the problem of how to pass it to template in bottle i've tried a lot,, and checked most of the Questions in stackoverflow and I could't find a good and clear question.  </p>
  
  <p>Here's what I have tried:</p>
  
  <pre><code>@route('/v/:name')
  def page_viwer(name):
      id=db.searchU('user', name)
      result=db.searchU_forG(id[0][0])
      if len(result)&gt;0:#if we got posts 
          return template('v',post=result)
  </code></pre>
  
  <p>And here is <code>v.tpl</code></p>
  
  <pre><code>&lt;html&gt;
  %for post in res:
      %for id, title, dec, pic,not_needed in post:
          &lt;h3&gt;{{id}}&lt;/h3&gt;
          &lt;h3&gt;{{title}}&lt;/h3&gt;
          &lt;h3&gt;{{dec}}&lt;/h3&gt;
          &lt;h3&gt;{{pic}}&lt;/h3&gt;
          &lt;br/&gt;
  %end
  &lt;/html&gt;
  </code></pre>
  
  <p>When I tried this, I got Error 500 ... And when I checked the logs this is the reason:</p>
  
  <p><code>%for id, title, dec, pic in post:
  TypeError: 'int' object is not iterable</code></p>