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.
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.