title: TWIG - loop through a string
body: <p>I have a variable page.stock which is set on the load as the string "3,4,5,6".</p>
  
  <p>I want to loop through this variable. I tried:</p>
  
  <pre><code>{% for mysize in app.request.get(page.stock) %}
  
      &lt;input type="radio" id="{{mysize}}" name="size" value="{{mysize}}" &gt;
      &lt;label for="{{mysize}}"&gt;{{mysize}}&lt;/label&gt; 
  
  {% endfor %}
  </code></pre>
  
  <p>and I also tried:</p>
  
  <pre><code>{% for mysize in page.stock %}
  
      &lt;input type="radio" id="{{mysize}}" name="size" value="{{mysize}}" &gt;
      &lt;label for="{{mysize}}"&gt;{{mysize}}&lt;/label&gt;   
  
  {% endfor %}
  </code></pre>
  
  <p>Both with no luck. How do I iterate through the <code>,</code> delimited string?</p>