Forces the value to a list.

For example:

{% print value|make_list %}

When value is the tuple {"a","b"} then the output is the list ["a","b"].

This filter is especially useful for loops using the {% for %} tag:

{% for v in value|make_list %}
  {{ v|escape }}
{% endfor %}

Edit on GitHub

length Lists member

Referred by


Filters transform template variables before they are rendered.


This model gives access to the request variables from within a template.