whole-ass web-apps in-browser
<!DOCTYPE html>
<html>
<head>
<script src="htmx.js"></script>
<script src="tiny-request-router.js"></script>
<script src="htmx-local.js"></script>
<script>
/*
htmx-local adds a tiny-request-router at htmx.router
use it to define routes and handlers for htmx ajax requests
*/
htmx.router.get("/", () => "Hello, world")
</script>
</head>
<!-- do your regular htmxing -->
<body hx-get="/" hx-trigger="load">
</body>
</html>
Try it on glitch
{{#versions}}