Capitalizado el MENU :-) con Filtro
This commit is contained in:
parent
aea2e19453
commit
9b54135efe
|
@ -0,0 +1,7 @@
|
||||||
|
{# templates/_navigation.html #}
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
{% for menu_item in ["home", "results"] %}
|
||||||
|
<a href="{{ url_for(menu_item)}}">{{ menu_item|upper }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</nav>
|
|
@ -9,6 +9,9 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<header>
|
||||||
|
{% include "_navigation.html" %}
|
||||||
|
</header>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Welcome to {{ title }}!</h1>
|
<h1>Welcome to {{ title }}!</h1>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in New Issue