jinja2
has tons of filters for strings, lists, etc that can be used to make the process of, um well, filtering simpler.To apply a filter you can use pipe symbol (|). In order to
lower case`/`upper case
a string:{{"SOMETHING"|lower}}
{{"sOmThing"|upper}}
Or let's say getting the max number from a list:
{{ [1, 2, 3]|max }}
The filters are endless, see below for more:
http://jinja.pocoo.org/docs/2.10/templates/#filters
#python #jinja2 #template #filter #uppercase #lowercase #max