title: For loop in jinja using exported variable
body: <p>I am trying to generate some code in a for loop and the limit is set dynamically from an exported variable. This is what I was trying</p>
  
  <p>In test.mk</p>
  
  <pre><code>export num_iterations = 3
  </code></pre>
  
  <p>In test.j2</p>
  
  <pre><code>{%- for i in range(0, {{ num_iterations | int }}) %}
          Do something with  {{i}}
  {%- endfor %}
  
  Error I get
  jinja2.exceptions.TemplateSyntaxError: expected token ':', got '}'
  
  </code></pre>
  
  <p>If I use range(0, 3), the code generation works fine.</p>
  
  <p>Thanks</p>