Re:Mustache, ERB and the future of templating
by Breefield on Monday October 17, 2011 @08:32PM
(#3123183)
Being able to forget about closing tags in HAML is such a godsend for me, just saying.
[ Parent
| on HN ]
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.