this reminds me of superflyDOM: <a href="http://docs.jquery.com/Plugins/SuperFlyDOM/createAppend#elementattributeschildren" rel="nofollow">http://docs.jquery.com/Plugins/SuperFlyDOM/createAppend#elem...</a><p>I saw it used in a project once and it was a disaster. The problem being, by using javascript to represent html you are making your templates harder to write and harder to maintain.<p>This solution certainly has some cool features, but I strongly disagree with comparisons to haml. Where haml strips away a bunch of html syntactical weight, newt.js piles it on.<p>Sorry if i'm being too strong, but I just wanted to share my thoughts/experiences/criticism. It is clear the author has put a lot of work into this, including tests.<p>I like <a href="http://www.handlebarsjs.com/" rel="nofollow">http://www.handlebarsjs.com/</a> for my javascript templating because I can literally cut and paste in some html into a template, add some logic(if/then blocks) and I'm done.