News for hackers. Stuff that matters.
Re:Mustache, ERB and the future of templating by gregwebs on Monday October 17, 2011 @09:03PM (#3123280)
HAML is good, but abandons HTML too much, which is why we created Hamlet. I just yesterday released a client-side version: https://github.com/gregwebs/hamlet.js

I did mustache style variable interpolation (but you can stick whatever js you want in it) because it was easy to implement. I just realized that this style doesn't allow the insertion of javascript loops, but it would be compatible with mustache and make for a much better implementation - you also wouldn't need to close your mustache loop just like you don't need to close your tag.

There are no comments on this comment yet.