3 ms·
I guess the technique we're using would fall under "DOM-templating" which the writer dismisses with four bullet points: * less expressive I somewhat disagree,
by Tloewald 13y ago
I guess the technique we're using would fall under "DOM-templating" which the writer dismisses with four bullet points:
* less expressive
I somewhat disagree, and would also say that the only reason for having the extra "expressiveness" is to do things you probably shouldn't do in your template.
* you may need to avoid a flash of unbound content
But you may not!
* server-side rendering is hard or impossible without hacks
But I'd say that rendering string templates server-side is simply bad if you do not comprehend the HTML, so the "hacks" are worth it, and not really a big problem with -- say -- node.
* data-binding cruft
Simply disagree here -- make your data-binding "cruft" legal and it helps see what's going on in debugging.
So I'll stick with our "DOM-templating" approach. Good read though and thought-provoking.