3 ms·
"I thought I loved Mustache a year ago, but over time I’ve learned just how revolutionary separating templates from views is toward maintainability and collabor
by latchkey 15y ago
"I thought I loved Mustache a year ago, but over time I’ve learned just how revolutionary separating templates from views is toward maintainability and collaboration."
Wow, it makes me wonder what you were doing before?
I'm more a fan of http://www.handlebarsjs.com/ http://www.handlebarsjs.com/. It has a few handy features that are missing from Mustache.
- baddox 15y agoNamely, handlebars allows you to use dot syntax to get inside nested hashes (objects). While you could argue that this isn't a good practice, it certainly makes it easier to create templates for an existing JSON API endpoint that contains nested objects.