view examples/bench/django/templates/template.html @ 636:699601cce3cc trunk

Follow-up to [751]: applying the optimization to text templates was actually slowing them down, so only do it for markup templates.
author cmlenz
date Wed, 05 Sep 2007 13:06:59 +0000
parents e29a94b3ba0c
children
line wrap: on
line source
{% extends "base.html" %}
{% load bench %}

{% block content %}
  <head>
    <title>{{title|escape}}</title>
  </head>

  <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 %}
Copyright (C) 2012-2017 Edgewall Software