Re:Mustache, ERB and the future of templating
by Torn on Tuesday October 18, 2011 @05:24AM
(#3124524)
Does it degrade gracefully?
Re:Mustache, ERB and the future of templating
by barkmadley on Tuesday October 18, 2011 @10:27AM
(#3125308)
Of course not. At least not yet. The only missing piece is to bind the data that is already found in the html to the data found in the view-model object (or create the view-model object from the html, or some third strategy). This has been suggested a couple of times on the mailing list, but no-one has stepped up to the plate to implement it.
Try KnockoutJS, just for one page, and you'll see how incredibly powerful and time-saving it can be. Your clients have just as much CPU power in their phones as you do in your app servers; let them handle the view rendering. Knockout is beautiful, simple, and extremely elegant.