title: How can I break a for loop in jinja2?
body: <p>How can I break out of a for loop in jinja2?</p>
  
  <p>my code is like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a href="#"&gt;
  {% for page in pages if page.tags['foo'] == bar %}
  {{page.title}}
  {% break %}
  {% endfor %}
  &lt;/a&gt;
  </code></pre>
  
  <p>I have more than one page that has this condition and I want to end the loop, once the condition has been met.</p>