Comment on Why you should choose HTMX for your next web-based side project (2024)parentComments−purerandomness1yThen what's the point of using HTMX?If you're not sending just exactly the necessary HTML to replace the target's HTML; if you need to parse JSON, then even jQuery would be better suited.The whole idea of HTMX is to get rid of the extra steps.−majorchord1yI don't always have control over the remote end or due to business reasons the format can't be changed.And since htmx also has template plugins, being able to feed JSON values into it makes sense to me... a similar project, EHTML has this feature.−yawaramin1yYou would use htmx when you control your backend server. Otherwise, you would use something else.
Comments
Then what's the point of using HTMX?
If you're not sending just exactly the necessary HTML to replace the target's HTML; if you need to parse JSON, then even jQuery would be better suited.
The whole idea of HTMX is to get rid of the extra steps.
I don't always have control over the remote end or due to business reasons the format can't be changed.
And since htmx also has template plugins, being able to feed JSON values into it makes sense to me... a similar project, EHTML has this feature.
You would use htmx when you control your backend server. Otherwise, you would use something else.