{% 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) %}
      <li class="{{ loop.cycle('a', 'b') }}">{{ item }}</li>
    {% 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 %}
    <img src='bar.gif' height='10' width='{{ (value / 200 * 100)|round|int }}'>
  

  <pre>{{ debug() }}</pre>

  {% 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 %}

  <p>{{ _('This is the title.') }}</p>

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