foo.tmpl (Source)

    This fragment should appear in the text.
    <ul>
    {% for number in range(6,10) %}
    <li>The square root of {{number}}
        is {{ '{:0.3f}'.format(number**0.5) }}</li>
    {% endfor %}
    </ul>