Re:I Switched from Htmx to Datastar
by tankaiji on Friday October 10, 2025 @06:55AM
(#45537393)
I thought returning html from server was considered mixing up separation of concerns… oh well
[ Parent
| on HN ]
Re:I Switched from Htmx to Datastar
by hshdhdhehd on Friday October 10, 2025 @07:33AM
(#45537685)
partial html?
Returning html from a server is... just the WWW.
This website that we are communicating on returns html from the server. That's how the web works
Oh I guess I missed the point. So everything is rendered on server and even templating is on server side. Fair.
That's... no, servers sending HTML to the client was where we started with all this.
That's why the H in HTTP and in HTML stand for "Hypertext." Any time a webserver replies with something other than markup, _that's_ the extension/exception to that very old design.
Now, if you're talking about the separation of user-interface, data, logic, and where HTML fits in, that's a much bigger discussion.