This demo can: - Serve a webpage - Serve static assets - Asynchronously fetch html
29 lines
726 B
HTML
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>
|