Intro-to-Jinja-tpl-v2/templates/_navigation.html

8 lines
171 B
HTML

{# templates/_navigation.html #}
<nav>
{% for menu_item in ["home", "results"] %}
<a href="{{ url_for(menu_item)}}">{{ menu_item|upper }}</a>
{% endfor %}
</nav>