Rewrite to Django from scratch. Now it's much more user-friendly.
[cookbook.git] / example / data / template / cookbook / recipes.html
1 {% extends "cookbook/base.html" %}
2
3 {% block title %}
4 {{ title }}
5 {% endblock %}
6
7 {% block content %}
8 <h1>{{ title }}</h1>
9 {% if recipes %}
10     <ul>
11     {% for recipe in recipes %}
12         <li><a href="{% url recipe recipe.id %}">{{ recipe.name }}</a></li>
13     {% endfor %}
14     </ul>
15 {% else %}
16     <p>No recipes are available.</p>
17 {% endif %}
18 {% endblock %}