Django. Pass an array to a child template via include tag
django, django-templates, python
Solution
Do like
{% include "template.html" with foo = 'one,two' %}
and use `split`
Problem
I'm trying to create an array on the fly and pass it to a child template: `{% include "template.html" with foo = ['one', 'two'] %}` but this doesn't work. Does anybody know how to generate an array in parent template and then pass it to another template?