3 ms·
The solution is not another templating language. Html is complex and many templating languages exist because it’s hard to compress and everything thinks it’s no
by haburka 6y ago
The solution is not another templating language. Html is complex and many templating languages exist because it’s hard to compress and everything thinks it’s not that hard. There are so many things you need to do in HTML to make a modern web page that this suggestion conveniently ignores.
The web is complex because it has replaced native programs and it’s perfectly backwards compatible. Stop trying to make it look easy.
- wtetzner 6y ago> There are so many things you need to do in HTML to make a modern web page that this suggestion conveniently ignores. Any examples of things that aren't handled by the suggested syntax?
- Tade0 6y agoComment nodes, multiple text nodes in one element node, CDATA section.
- wtetzner 6y agoAre there any examples of where you'd need that in a web application that's just being used to update the DOM? None of those seem to be necessary to create a modern web application. I'm not arguing, just trying to understand.
- Tade0 6y agoIf you have a rich text editor or inline SVG there, you're bound to have to deal with them eventually.
- wtetzner 6y agoWhy? I'm really trying to understand. If you're directly modifying the DOM, why would you need comments or CDATA tags? Is CDATA useful in a DOM if you don't actually need a textual representation?