News for hackers. Stuff that matters.
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
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.

Re:I Switched from Htmx to Datastar by nchmy on Friday October 10, 2025 @12:58PM (#45541093)
This website that we are communicating on returns html from the server. That's how the web works
Re:I Switched from Htmx to Datastar by tankaiji on Friday October 10, 2025 @04:18PM (#45543322)
Oh I guess I missed the point. So everything is rendered on server and even templating is on server side. Fair.
Re:I Switched from Htmx to Datastar by pragma_x on Friday October 10, 2025 @05:02PM (#45543748)
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.