Django template mode

x
 
1
            <!doctype html>
2
            <html>
3
4
            <head>
5
                <title>My Django web application</title>
6
            </head>
7
8
            <body>
9
                <h1> {{ page.title|capfirst }} </h1>
10
                <ul class="my-list"> {# traverse a list of items and produce links to their views. #} {% for item in items %}
11
                    <li>
12
                        <a href="{% url 'item_view' item.name|slugify %}"> {{ item.name }} </a>
13
                    </li> {% empty %}
14
                    <li>You have no items in your list.</li> {% endfor %} </ul> {% comment "this is a forgotten footer" %}
15
                <footer></footer> {% endcomment %} </body>
16
17
            </html>
18
        

Mode for HTML with embedded Django template markup.

MIME types defined: text/x-django