News for hackers. Stuff that matters.
Re:Mustache 2.0 and the Future of Mustache.js by markkanof on Sunday February 13, 2011 @03:43PM (#2213849)
How are people using these JavaScript templating frameworks? What is the structure and flow of the application? They seem interesting but I don't yet totally grasp what benefits they provide.
Re:Mustache 2.0 and the Future of Mustache.js by sjs on Sunday February 13, 2011 @05:16PM (#2214147)
They're useful for doing more on the client than server. If your UI runs only on the client then you just have to write a web service to communicate with. You just take the V out of MVC, or you have views that simply emit JSON/XML/whatever.

Most web pages would not benefit from this but many web apps can and do.

Re:Mustache 2.0 and the Future of Mustache.js by tchvil on Sunday February 13, 2011 @05:24PM (#2214176)
In the case of a web app, the main benefit for me is you outsource the rendering of the HTML to the,usually idle, browser. Your server is freed to deliver only data.

And for recurrent visitors. The logic(HTML, CSS, JS) is in the browser's cache. Then only data travel the network from the 2nd visit, freeing even more your server.