Mercurial > genshi > genshi-test
diff examples/bench/django/templates/template.html @ 76:37f128d2d7f4
Add Django to the benchmark.
author | cmlenz |
---|---|
date | Thu, 13 Jul 2006 09:17:21 +0000 |
parents | |
children | 8dd0d34a9fb7 |
line wrap: on
line diff
new file mode 100644 --- /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.islast %} class="last"{% endif %}>{{ item|escape }}</li> + {% endfor %} + </ul> + {% endif %} + +{% endblock %}