feat: render document or fragment

This commit is contained in:
2023-05-09 22:36:59 +02:00
parent f10fc81658
commit 32f5afb10f
5 changed files with 66 additions and 53 deletions

View File

@@ -9,20 +9,13 @@
<script src="/static/js/htmx.min.js"></script>
<script src="/static/js/script.js"></script>
<title>Hello htmx!</title>
<title>{% block title %}Hello htmx!{% endblock %}</title>
{% block head %}{% endblock %}
</head>
<body>
<hgroup>
<h1>Hello htmx!</h1>
<p>A new old way to build web applications</p>
</hgroup>
<table>
<tr><td>
<button hx-get="/table" hx-target="table" hx-push-url="true">
Load data
</button>
</td></tr>
</table>
<main id="content">
{% block content %}{% endblock %}
</main>
</body>
</html>