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

20 lines
344 B
HTML
Raw Normal View History

2024-02-13 14:48:42 +00:00
{# templates/base.html #}
<!DOCTYPE html>
<html lang="en">
2024-02-13 15:55:08 +00:00
2024-02-13 14:48:42 +00:00
<head>
<meta charset="utf-8">
<title>{% block title %}{{ title }}{% endblock title %}</title>
2024-02-13 14:48:42 +00:00
</head>
<body>
2024-02-13 15:55:08 +00:00
<header>
{% include "_navigation.html" %}
</header>
{% block content %}
<h1>Welcome to {{ title }}!</h1>
{% endblock content %}
2024-02-13 14:48:42 +00:00
</body>
</html>