7 ms·
Being new to Datastar and having seen some of the hype recently, I'm really not sold on it. The patch statements on the server injecting HTML seems absolutely
by highwaylights 1y ago
Being new to Datastar and having seen some of the hype recently, I'm really not sold on it.
The patch statements on the server injecting HTML seems absolutely awful in terms of separation of concerns, and it would undoubtedly be an unwieldy nightmare on an application of any size when more HTML is being injected from the server.
- mdallastella 1y agoThis. I feel wrong having endpoints that produce bits of HTML.
- hshdhdhehd 1y agoYes. It is OK for simple form submits but going to get annoying for anything that feels like an app.
- e12e 1y agoThere's a reason xpath and xls look they way they do - they're powerful, but not very comfortable :/ Reimplantations tend to simply some bits, but end up amassing complexities in various corners...
- Izkata 1y ago"Bits of HTML" was for a long time so common and normal it has its own term: HTML fragments.
- sudodevnull 1y agoServers sending HTML to the browser? Scandalous!
- naasking 1y agoWhat has the world wide web come to?!
- dpc_01234 1y agoNot sure if satire, or serious. Well done, well done.
- aiiizzz 1y agoPeople today don't remember that assigning to innerHTML isn't a good idea, so anything goes.
- naasking 1y agoLet's have scattered bits of JS inject HTML instead, that'll fix it!