3 ms·
Maybe it's just me, but I honestly have trouble taking anyone who uses mustache templates seriously because I automatically assume they've never worked on a lar
by wavephorm 15y ago
Maybe it's just me, but I honestly have trouble taking anyone who uses mustache templates seriously because I automatically assume they've never worked on a large website.
- dustindiaz 15y agoI'm the co-author of Matador. I worked on Twitter.com - which is a relatively sized website - and we used Mustache... so there's that.
- wavephorm 15y agoTwitter has about 5 "pages" on their whole website. From a template perspective it's the MOST simple kind of website you can build. So, there's that.
- dustindiaz 15y agoI was only counting the one page after logging in, which does everything. It's how web apps work.
- chrisledet 15y agoFrom what I've read, Github uses Mustache also. Logic-less templates are nice. It keeps code out of the views.
- wavephorm 15y agoIt keeps code out of the views. ...and put it in controllers, which is terrible for large-scale organization. I would hate to see what their back-end looks like.
- chrisledet 15y agoWith that said, you obviously know little about Mustache and how to use it thus not contributing anything meaningful. I recommend you check out Chris Wanstrath's mustache library for Ruby: https://github.com/defunkt/mustache#readme https://github.com/defunkt/mustache#readme
- wavephorm 15y agoYeah so instead of having a controller and a view, you have a controller and a separate formatter class which looks like this: module ViewHelpers def gravatar gravatar_id = Digest::MD5.hexdigest(self[:email].to_s.strip.downcase) gravatar_for_id(gravatar_id) end def gravatar_for_id(gid, size = 30) "#{gravatar_host}/avatar/#{gid}?s=#{size}" end def gravatar_host @ssl ? 'https://secure.gravatar.com' : 'http://www.gravatar.com' end end I argue this will get extremely tiresome for large websites.
- ryansking 15y agoWorks pretty well for us (twitter.com).
- GarrickCheung 15y agoI work for GameSpot.com and we've used Mustache on it.
- lukifer 15y agoI'd be really interested to see how Mustache does in real world performance vs., say, PHP or Ruby templates. I'm also curious about using it to offload rendering to the browser, particularly when using Ajax or UI binding. While Mustache sometimes seems like a solution in search of problem, I do like that it's completely logicless, and so forces all logic, even display logic, into the controller.
- brianjesse 15y agoI interviewed for a job @Twilio - they were using Handlebars, a Mustache variant. Also, here is my mini-chance to rant about that: I had 4 phone and 6 in-person interviews -- didn't get hired. Argh! How could anyone make it through that? Also - i'm a generalist, which seems to have kept me out of both Facebook and Twilio. /rant