|
|
|
|
|
by cpitman
1118 days ago
|
|
I think that unpoly(https://unpoly.com/) would be easier for that use case. htmx generally expects succesive http requests to only return the fragment of html that will be swapped into the target, not the entire page. So you generally want something server side that can check the request and either return the full page (either for a first hit or disabled javascript) or return just a fragment (an htmx request). Unpoly has similar goals to htmx, but by default works with full page responses, swapping only the identified content in the page. |
|
[1] https://htmx.org/attributes/hx-select/