Mercurial > genshi > mirror
annotate examples/bench/django/templates/template.html @ 1045:d7ede0cf4735 stable-0.6.x tip
Merge r1269 from trunk (fix for selecting namespaced attributes).
author | hodgestar |
---|---|
date | Thu, 20 Mar 2014 13:01:56 +0000 |
parents | e29a94b3ba0c |
children |
rev | line source |
---|---|
76 | 1 {% extends "base.html" %} |
2 {% load bench %} | |
3 | |
400
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
4 {% block content %} |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
5 <head> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
6 <title>{{title|escape}}</title> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
7 </head> |
76 | 8 |
400
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
9 <body> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
10 {% block header %}{% endblock %} |
76 | 11 |
400
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
12 <div>{% greeting user %}</div> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
13 <div>{% greeting "me" %}</div> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
14 <div>{% greeting "world" %}</div> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
15 |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
16 <h2>Loop</h2> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
17 {% if items %} |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
18 <ul> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
19 {% for item in items %} |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
20 <li{% if forloop.last %} class="last"{% endif %}>{{ item|escape }}</li> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
21 {% endfor %} |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
22 </ul> |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
23 {% endif %} |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
24 |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
25 {% block footer %}{% endblock %} |
e29a94b3ba0c
Renamed `genshi.template.core` to `genshi.template.base`, mainly to avoid confusion with `genshi.core`.
cmlenz
parents:
76
diff
changeset
|
26 </body> |
76 | 27 {% endblock %} |