Debian Codegraph @

examples/bench/jinja2_inheritance/template.html

raw
1 {% extends "base.html" %}
2 {% block body %}
3 {{ greeting(user) }}
4 {{ greeting('me') }}
5 {{ greeting('world') }}
6
7 <h2>Loop</h2>
8 {%- if list_items %}
9 <ul>
10 {%- for list_item in list_items %}
11 <li {{ "class='last'" if loop.last else ""}}>{{ list_item }}</li>
12 {%- endfor %}
13 </ul>
14 {%- endif %}
15 {% endblock body %}