feat: render document or fragment
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user