August 2016
Beginner to intermediate
717 pages
15h 24m
English
Filters are an effective way to modify the data before sending it to the template. We will look at some examples of filters in the following sections to understand them better.
The lower filter converts into lowercase letters, and the upper filter converts into uppercase letters. The example given in the subsequent sections contains the my_hello variable, which equals Hello World!
The code for the lower filter is as follows:
<span> {{ my_hello | lower }} </span>This code generates the following HTML code:
<span> hello world! </span>
The code for the upper filter is as follows:
<span> {{ my_hello | upper }} </span>This code generates the following HTML code:
<span> HELLO WORLD! ...
Read now
Unlock full access