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

8 lines
171 B
HTML
Raw Normal View History

2024-02-13 15:55:08 +00:00
{# templates/_navigation.html #}
<nav>
{% for menu_item in ["home", "results"] %}
<a href="{{ url_for(menu_item)}}">{{ menu_item|upper }}</a>
{% endfor %}
</nav>