Tornado template mode

x
 
1
            <!doctype html>
2
            <html>
3
4
            <head>
5
                <title>My Tornado web application</title>
6
            </head>
7
8
            <body>
9
                <h1> {{ title }} </h1>
10
                <ul class="my-list"> {% for item in items %}
11
                    <li>{% item.name %}</li> {% empty %}
12
                    <li>You have no items in your list.</li> {% end %} </ul>
13
            </body>
14
15
            </html>
16
        

Mode for HTML with embedded Tornado template markup.

MIME types defined: text/x-tornado