3 ms·
That's not a good thing. I want to write this, and have it actually be HTML: <div> <div> </div> <div> I like HTML.
by milesrout 10y ago
That's not a good thing.
I want to write this, and have it actually be HTML:
<div>
<div>
</div>
<div>
I like HTML.
- tannhaeuser 10y agoThough I personally can tolerate JSX, maybe you like SGML templating [1] which uses native markup mechanisms such as entity references for fully HTML-aware and injection-free templating. [1]: http://sgmljs.net/docs/templating.html http://sgmljs.net/docs/templating.html Disclaimer: my project, and SGML is most certainly not a "lightweight template engine" by any measure
- elcritch 10y agoSame here! Try VueJS. Especially Vue Components as they wrap up HTML template and JS code. Vue creates the render function from the HTML template, so no mucking around with jsx. Personally I want to think in "HTML" with JS secondary.
- milesrout 10y agoI love VueJS.