3 ms·
with htmx you can send out of band content down that will be swapped in by id: https://htmx.org/attributes/hx-swap-oob/ https://htmx.org/attributes/hx-swap-oob
by recursivedoubts 6y ago
with htmx you can send out of band content down that will be swapped in by id:
https://htmx.org/attributes/hx-swap-oob/ https://htmx.org/attributes/hx-swap-oob/
you can also select content by a selector:
https://htmx.org/attributes/hx-select/ https://htmx.org/attributes/hx-select/
and there is infrastructure for general response transformations via the extensions mechanism:
https://htmx.org/extensions/client-side-templates/ https://htmx.org/extensions/client-side-templates/
See the source code here:
https://unpkg.com/htmx.org@0.0.4/dist/ext/client-side-templates.js https://unpkg.com/htmx.org@0.0.4/dist/ext/client-side-templa...