title: Use a variable name for a block's name in Jinja2?
body: <p>I have the following template "base.html"</p>
  
  <pre><code>{% set list_of_ids = ['id1', 'id2', 'id3'] %}
  {% for id in list_of_ids %}
    &lt;div class="content"&gt;
      {% block id %}
      {% endblock %}
    &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>Is it possible to do this and in another template "id1.html"</p>
  
  <pre><code>{% extends "base.html" %}
  
  {% block id1 %}
     &lt;p&gt;This is my content for id1 block! Different from id2 and id3 blocks&lt;/p&gt;
  {% endblock %}
  </code></pre>