3 ms·
I have used it for my website [1] and liked it a lot. I found the attributes `hx-swap` and `hx-swap-oob` [2] important to allow multiple updates. For instance,
by mejutoco 4y ago
I have used it for my website [1] and liked it a lot. I found the attributes `hx-swap` and `hx-swap-oob` [2] important to allow multiple updates. For instance, after liking a post the like button updates in several places, in the aforementioned website.
I found out putting the ids for the htmx snippets in a typed datastructure (in my case Python with type annotations, since I use django in the backend) to be easier to find the corresponding templates, see all usages, etc. I think otherwise it gets a bit confusing.
[1] https://fromzerotofullstack.com/ https://fromzerotofullstack.com/
[2] https://htmx.org/attributes/hx-swap-oob/ https://htmx.org/attributes/hx-swap-oob/