<!DOCTYPE html>
<html>
    <head>
        <title>My Webpage</title>
    </head>
    <body>
        <ul id="navigation">
        {% for item in navigation %}
            <li><a href="{{ item.href|escape }}">{{ item.caption }}</a></li>
        {% endfor %}
        </ul>

        {% if 1 not in [1, 2, 3] %}

        {# is equivalent to #}
        {% if not (1 in [1, 2, 3]) %}

        {% autoescape true %}
            {{ var }}
            {{ var|raw }}     {# var won't be escaped #}
            {{ var|escape }}  {# var won't be doubled-escaped #}
        {% endautoescape %}

        {{ include('twig.html', sandboxed = true) }}

        {{"string #{with} \" escapes" 'another#one' }}
        <h1>My Webpage</h1>
        {{ a_variable }}
    </body>
</html>