Tags
- A
forloop renders itselseblock when it has no items, also after anoffsetthat skips all items and for a range such as(3..1). See for. cyclevalues can contain a colon, for example{% cycle '10:00', '14:00' %}. See cycle.ifandunlesscompare strings that containandoror, for example{% if title == 'art and design' %}.
Filters
sumadds the numbers in an array, or the values of one property. See sum.defaultwithout an argument returns an empty string fornil,falseand empty strings. See default.jsonprints the JSON of a value directly. Numbers, booleans andnilprint without quotes, so the output works inside a<script>tag. See json.