Re:Stop sending template engines to the browser. How to make...
by gliese1337 on Friday September 14, 2012 @02:07AM
(#4520310)
You only get jQuery spaghetti if jQuery is your method of choice for manipulating the DOM. Most of my work is extremely JS-heavy applications, and I've never found it necessary to use string-interpolating templates. I have found it very useful to use a hand-rolled "template" system based on DOM structures, with data-attributes indicating where the templating engine should insert stuff. Might turn it into a real library someday, but it's really simple, so I don't see a whole lot of point to doing so yet.
[ Parent
| on HN ]
There are no comments on this comment yet.