htmxxx
comprises just 2 attributes for you to learn.
all this is implemented in 2 functions.
it is 941 bytes minified - that's ~14x smaller than htmx
min/gzip'd.
a truly lean framework for interactivity that exposes just enough.
Make your a
or form
elements sexy by adding the xxx
attribute.
<h1 id="target-element">I will get updated</h1>
<a href="/get-update" xxx>Click Me</a>
Return an element wrapped in an element with the xxx-update
attribute set to the target of the id
you want to replace.
<div xxx-update="target-element">
<h1 id="target-element">Sexy update</h1>
</div>
You can send multiple updates in 1 response:
<div xxx-update="target-1">...</div>
<div xxx-update="target-2">...</div>
You can send new interactive elements in a response
<div xxx-update="target-1">
<a href="/bloop" xxx>Click me</a>
</div>
You can delete elements with an empty update
<div xxx-update="target-1"><div>
curl https://htmxxx.fly.dev/script.min.js > htmxxx.js
<script src="https://htmxxx.fly.dev/script.min.js"></script>
dont though.