Template Filter - unordered_list
Definition and Usage
The unordered_list
filter converts an object into a HTML list.
The start <ul>
and end </ul>
is not included,
but if you have a list inside a list, the unordered_list
filter
will add proper <ul>
and </ul>
for the nested lists:
Example
Convert nested Python lists into nested HTML lists:
<ul>
{{ food|unordererd_list }}
</ul>
Run Example »
Syntax
Template filters are defined by using a pipe |
character followed by the name of the filter.
{{ value|unordered_list }}