title: Twig - How to loop particular number of times
body: <p>I need to be able to generate the links certain number of times (stored in int variable)Is there a way to do it out of the box with twig's for loop?</p>
  
  <pre><code>{% for i in numberOfLoops %}
      {{ i }}. Some data
  {% endfor %}
  </code></pre>
  
  <p>The above example do not work. I googled it but did not find actual solution. Any support would be very appreciated.</p>
  
  <p>EDIT:
  I also tried:</p>
  
  <pre><code>{% set k = 10 %}
  {% for i in 0..k %}
      {{ i }}
  {% endfor %}
  </code></pre>
  
  <p>but this generates an exception:</p>
  
  <pre><code>com.lyncode.jtwig.exception.ParseException: Wrong binary operation syntax
  Explanation: Input position (line 15, pos 27):
          {% for i in 0..k %}
                        ^
  </code></pre>