Mercurial > genshi > mirror
diff examples/bench/django/templates/template.html @ 500:3eb30e4ece8c experimental-inline
Merged revisions 487-603 via svnmerge from
http://svn.edgewall.org/repos/genshi/trunk
author | cmlenz |
---|---|
date | Fri, 01 Jun 2007 17:21:47 +0000 |
parents | 85f70ec37112 |
children |
line wrap: on
line diff
--- a/examples/bench/django/templates/template.html +++ b/examples/bench/django/templates/template.html @@ -1,22 +1,27 @@ {% 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> +{% block content %} + <head> + <title>{{title|escape}}</title> + </head> - <h2>Loop</h2> - {% if items %} - <ul> - {% for item in items %} - <li{% if forloop.islast %} class="last"{% endif %}>{{ item|escape }}</li> - {% endfor %} - </ul> - {% endif %} + <body> + {% block header %}{% endblock %} + <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|escape }}</li> + {% endfor %} + </ul> + {% endif %} + + {% block footer %}{% endblock %} + </body> {% endblock %}