title: working with arrays in jinja2
body: <p>I'm passing an array object from a view in my Flask server to the jinja2 template. Let's say the name is <code>aList</code>. When I try to change a value inside of <code>aList</code> like this:</p>
  
  <p>in Flask:</p>
  
  <pre><code>aList = ['a', 'b', 'c']
  </code></pre>
  
  <p>in the template:</p>
  
  <pre><code>{% set aList[0] = "work, dammit!" %}
  </code></pre>
  
  <p>I get this error that tells me that "=" is expected instead of "[" in the template.</p>
  
  <p>Can someone tell what the right way of working with arrays is in jinja2?</p>