The powerful composition comes from functions. Which a good template language can have.
-
-
But either way, in both syntaxes you need to learn the syntax for conditionals and loops.
-
I like to keep conditionals and loops in real js whenever possible. Turns out there is already a syntax for both! :)
-
One of the benefits to having templates in the js is that you write more real js and less magic... imo
-
Fair enough. I think you might be undercounting the cognitive costs to some in mixed JS/XML but again YMMV.
-
I think the level of adoption speaks for itself.
-
Handlebars is extremely popular too. As I said, different strokes for different folks.
-
Overall I agree that template syntax is indifferent. The browser providing a way to dynamically merge two DOM trees is the primitive we need
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.