At some point, I used Mustache and Hamla. If you hadnโt mentioned this, I would probably recommend Mustache as a clean template solution. Haml is great, but it replaces author html anymore (i.e. you no longer write html, you write haml). Mustache on the other hand is all about patterns.
I think that any of them would be a great choice. Mustache.js is mature, the java implementation is probably not the case, but it has been around for a while, so you are probably fine. I'm not sure how mature javascript or grails Haml implementations are.
I would be inclined to Mustache, if all you need is a template, this is very good, although it takes some time to get used to the whole syntax {{}}. But if you are attracted to Haml as a substitute for writing HTML, it may tip you in that direction.
skorks
source share