forked from spookylukey/django-htmx-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
20 lines (20 loc) · 730 Bytes
/
base.html
File metadata and controls
20 lines (20 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Django htmx patterns</title>
<link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/v3.0.1/dist/mini-default.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script defer src="{% static 'js/htmx-1.9.4.js' %}"></script>
{% block extrahead %}
{% endblock %}
</head>
<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
{% if messages %}
<ul class="messagelist">{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}</ul>
{% endif %}
{% block body %}{% endblock %}
</body>
</html>