aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bench/django/templates/template.html
blob: 1ab56ccdeef94b16e2282349d29edad04ba0fcf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% extends "base.html" %}
{% load bench %}

<head>
  <title>${title|escape}</title>
</head>

{% block body %}
  <div>{% greeting user %}</div>
  <div>{% greeting "me" %}</div>
  <div>{% greeting "world" %}</div>

  <h2>Loop</h2>
  {% if items %}
    <ul>
      {% for item in items %}
        <li{% if forloop.islast %} class="last"{% endif %}>{{ item|escape }}</li>
      {% endfor %}
    </ul>
  {% endif %}

{% endblock %}