{% extends "layout.html" %} {% load i18n %} {% block title %}Foo{% endblock %} {% block page-body %} {{ block.super }} Hello {{ name|cut:"d" }}! {% for item in seq reversed %} {% if forloop.index|divisibleby:2 %}
  • {{ item }}
  • {% endif %} {% endfor %} {% ifequal foo bar %} haha {% else %} hmm {% endifequal %} {% filter upper %} {% include "subtemplate.html" %} {% include foo %} {% endfilter %} {% spaceless %} Hello World {{ foo }} Hmm {% endspaceless %} {% templatetag opencomment %}...{% templatetag closecomment %} {% url foo a, b, c=d %} {% url foo a, b, c=d as hmm %} {% with object.value as value %} {% endwith %}
    {% debug %}
    {% blocktrans with book|title as book_t and author|title as author_t %} This is {{ book_t }} by {{ author_t }} {% endblocktrans %} {% blocktrans count list|length as counter %} There is only one {{ name }} object. {% plural %} There are {{ counter }} {{ name }} objects. {% endblocktrans %} {% blocktrans with name|escape as name count list|length as counter %} There is only one {{ name }} object. {% plural %} There are {{ counter }} {{ name }} objects. {% endblocktrans %} {% blocktrans %}This string will have {{ value }} inside.{% endblocktrans %}

    {% trans "This is the title." %}

    {% regroup people by gender as grouped %} {% endblock %}