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>
|
|
@ -2,13 +2,16 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>{% block title %}{{ title }}{% endblock title %}</title>
|
<title>{% block title %}{{ title }}{% endblock title %}</title>
|
||||||
</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