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