News for hackers. Stuff that matters.
Re:Htmx 1.9.0 has been released by synergy20 on Tuesday April 11, 2023 @07:28PM (#35533136)
as an embedded developer, CSR+SPA is the default way to do it these days, my embedded board(with limited resources that can not run python/django/etc) only needs to provide some json data but htmx expects backend spits out html.

Not sure if it's possible for htmx to work with haserl or some c-based cgi or even lua-based lightweight web framework, I guess it could, just not popular so nobody did it.

Re:Htmx 1.9.0 has been released by olodus on Tuesday April 11, 2023 @07:52PM (#35533311)
If I am not mistaken, last time I looked at it I think I saw that HTMX has the ability to declare handlers. So that if you instead want to provide Json, one of those handlers could transform/handle it client-side. I think, haven't tried it myself.
Re:Htmx 1.9.0 has been released by neurostimulant on Wednesday April 12, 2023 @12:08AM (#35534900)
Any backend that can spit out html fragments should works. The backend doesn't have to be aware of htmx. Heck, the response doesn't have to be a fragment either because you can just select which part of the response to update the dom with using the hx-select attribute.