title: Jinja2 dynamic variable building
body: <p>My jinja template gets an object which has many variable names, this attributes vary and so their names, I am looking for a way to access this attributes based on a prefix and a for loop:</p>
  
  <pre><code>{% for i in Object.vars %}
      &lt;h1&gt; {{ Object.attribute_ + i }} &lt;/h1&gt;
  {% endfor %}
  </code></pre>
  
  <p>I'm trying to access Object.attribute_1, Object.attribute_2 and so on. the code above of course won't work, but I can't think on a way of doing this.</p>