Permalink
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (4 sloc) 147 Bytes
.. highlight:: django

Test if an integer value is even:

{% if 2|is_even %}Yes, the number 2 is even{% endif %}