Files
hello-htmx/templates/layout.html
Jonas Kattendick ea59f1ed1e feat: implement basic server
This demo can:
- Serve a webpage
- Serve static assets
- Asynchronously fetch html
2023-05-09 20:56:09 +02:00

29 lines
726 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/static/css/style.css" />
<script src="/static/js/htmx.min.js"></script>
<script src="/static/js/script.js"></script>
<title>Hello htmx!</title>
</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>
</body>
</html>