title: Building a list in Django templates
body: <p>With this code:</p>
  
  <pre><code>{% for o in [1,2,3] %}
      &lt;div class="{% cycle 'row1' 'row2' %}"&gt;
          {% cycle 'row1' 'row2' %}
      &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>I get a <code>TemplateSyntaxError</code>:</p>
  
  <pre><code>Could not parse the remainder: '[1,2,3]' from '[1,2,3]'
  </code></pre>
  
  <p>Is there a way of building a list in a template?</p>