Template Rendering
DTL Usage
Variables {{variable}} Notation: IF Variable Not Valid: TEMPLATE_STRING_IF_INVALID Filters Notation: {{variable|filter}} Example: {{ name|lower }} {{bio|truncatewords:30 }} {{value|filesizeformat}}
Tags Notation: {% tag %} or {% tag %} … {% endtag %} for:
if, elif, and else:
Template Inheritance
Automatic HTML Escaping Solution: -Automatic -Manual {{ data|safe }} {% autoescape off %} Hello {{ name }} {% endautoescape %}
Recommend
More recommend