summaryrefslogtreecommitdiff
path: root/examples/bench/django/templates/template.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bench/django/templates/template.html')
-rw-r--r--examples/bench/django/templates/template.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/bench/django/templates/template.html b/examples/bench/django/templates/template.html
new file mode 100644
index 0000000..cae6c5e
--- /dev/null
+++ b/examples/bench/django/templates/template.html
@@ -0,0 +1,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.last %} class="last"{% endif %}>{{ item }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+
+{% endblock %}