chore: Add htmx on an index.html root page

This commit is contained in:
2024-07-03 17:50:29 +02:00
parent 12973bc840
commit 1f1eea31a0
2 changed files with 30 additions and 9 deletions

12
templates/index.html Normal file
View File

@ -0,0 +1,12 @@
<html>
<head>
<title>Krys4lide</title>
<script src="https://unpkg.com/htmx.org@2.0.0/dist/htmx.js" integrity="sha384-Xh+GLLi0SMFPwtHQjT72aPG19QvKB8grnyRbYBNIdHWc2NkCrz65jlU7YrzO6qRp" crossorigin="anonymous"></script>
</head>
<body>
<h1>Krys4lide</h1>
<button hx-get="/hello" hx-target="#hello">Hello!</button>
<div id="hello"></div>
</body>
</html>