{% extends 'layout.html' %} {% block title %}Foo{% endblock %} {% block page_body %} {{ super() }} Hello {{ name|cut('d') }}! {% for item in (seq)|reverse %} {% if loop.index|divisibleby(2) %}
  • {{ item }}
  • {% endif %} {% endfor %} {% if foo == bar %} haha {% else %} hmm {% endif %} {% filter upper %} {% include 'subtemplate.html' %} {% include foo %} {% endfilter %} Hello World {{- foo -}} Hmm {{ '{#' }}...{{ '#}' }} {{ url('foo', a, b, c=d) }} {% set hmm = url('foo', a, b, c=d) %} {% set value = object.value %}
    {{ debug() }}
    {% trans author_t=author|title, book_t=book|title %} This is {{ book_t }} by {{ author_t }} {% endtrans %} {% trans counter=list|length %} There is only one {{ name }} object. {% pluralize %} There are {{ counter }} {{ name }} objects. {% endtrans %} {% trans name=name|escape, counter=list|length %} There is only one {{ name }} object. {% pluralize counter %} There are {{ counter }} {{ name }} objects. {% endtrans %} {% trans %}This string will have {{ value }} inside.{% endtrans %}

    {{ _('This is the title.') }}

    {% set grouped = people|groupby('gender') %} {% endblock %}