view examples/bench/django/templates/template.html @ 246:c7dd64bcde9c trunk

Document that `#end` markers in text templates can be used as comments.
author cmlenz
date Wed, 13 Sep 2006 17:19:30 +0000
parents 85f70ec37112
children e29a94b3ba0c
line wrap: on
line source
{% 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 %}
Copyright (C) 2012-2017 Edgewall Software