Use an 'include' in tera templating example.

This commit is contained in:
Juhasz Sandor 2021-06-03 13:44:21 +02:00 committed by Sergio Benitez
parent dc5c57b624
commit 469f3942eb
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<title>Tera Demo - {{ title }}</title>
</head>
<body>
<a href="/tera/hello/Unknown">Hello</a> | <a href="/tera/about">About</a>
{% include "tera/nav" %}
{% block content %}{% endblock content %}

View File

@ -0,0 +1 @@
<a href="/tera/hello/Unknown">Hello</a> | <a href="/tera/about">About</a>