Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

Template Filter - make_list


Example

Convert a string into a list:

<h1>{{ name|make_list }}</h1>
Run Example »

Definition and Usage

The make_list filter converts a value into a list.

Each character in the original value becomes a list item.


Syntax

Template filters are defined by using a pipe | character followed by the name of the filter.

{{ value|make_list }}