Mehhh Template v Template language
-
-
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 -
-
-
I think some people find the HTML syntax to have lower cognitive cost and others find the curly syntax cognitively cheaper. YMMV.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
just curious if you know if there are any markup languages that also contain logical operations built into the language...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.