title: How can I loop through 2 elements at the same time in jinja?
body: <p>I have two elements and need to cylcle through both of them at the same time, but in JINJA(!). Naturally I tried to use zip() to go through both (list and dict) at the same time, but jinja does not allow that </p>
  
  <pre><code> {% for (i, o) in zip(searches, e_links): %}
        &lt;a href="/sid/{{ o }}"&gt;
        &lt;div&gt;{{ i.time_string }}&lt;/div&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>jinja2.exceptions.UndefinedError: 'zip' is undefined
  </code></pre>
  
  <p>Is there another way for cycling through two items at the same time in jinja, or is it somehow possible to pass the zip() function to jinja?</p>