|
Last change
on this file was
492,
checked in by cmlenz, 17 years ago
|
|
Renamed genshi.template.core to genshi.template.base, mainly to avoid confusion with genshi.core.
|
-
Property svn:eol-style set to
native
|
|
File size:
550 bytes
|
| Line | |
|---|
| 1 | {% extends "base.html" %} |
|---|
| 2 | {% load bench %} |
|---|
| 3 | |
|---|
| 4 | {% block content %} |
|---|
| 5 | <head> |
|---|
| 6 | <title>{{title|escape}}</title> |
|---|
| 7 | </head> |
|---|
| 8 | |
|---|
| 9 | <body> |
|---|
| 10 | {% block header %}{% endblock %} |
|---|
| 11 | |
|---|
| 12 | <div>{% greeting user %}</div> |
|---|
| 13 | <div>{% greeting "me" %}</div> |
|---|
| 14 | <div>{% greeting "world" %}</div> |
|---|
| 15 | |
|---|
| 16 | <h2>Loop</h2> |
|---|
| 17 | {% if items %} |
|---|
| 18 | <ul> |
|---|
| 19 | {% for item in items %} |
|---|
| 20 | <li{% if forloop.last %} class="last"{% endif %}>{{ item|escape }}</li> |
|---|
| 21 | {% endfor %} |
|---|
| 22 | </ul> |
|---|
| 23 | {% endif %} |
|---|
| 24 | |
|---|
| 25 | {% block footer %}{% endblock %} |
|---|
| 26 | </body> |
|---|
| 27 | {% endblock %} |
|---|
Note: See
TracBrowser
for help on using the repository browser.