Re:Hmpl.js: Template language for fetching HTML from API
by peltoche on Tuesday July 23, 2024 @09:42AM
(#41045947)
Perfect example of a shitsandwich.
Re:Hmpl.js: Template language for fetching HTML from API
by evbogue on Tuesday July 23, 2024 @10:19AM
(#41046254)
My first thought was this is trying to be htmx as well, but upon reading the readme this project appears to convert the html it has retrieved from the API into a DOM object using the hmpl.compile() function. Could I do that with htmx?
That said, even after reading the Why HMPL section, I don't see why I would use this? I mean, the examples look like verbose, complicated alternatives of what HTMX does much more concisely and without me writing javascript.
Bravo on getting the project here though! That's an accomplishment!