I'm pretty impressed with HAML like js rederer.
But I'm confused how to use this with Rails app??
Where to put what and how to render on the view as a callback to replace the rendered jaml?
You can also look on erector http://github.com/pivotal/erector/tree/master/lib/erector/, that does pretty much the same (and a little more), and has a plugin for rails. The difference is: it is for server-side html generation, while this is for client-side. Pick your poison.
PS. I had no luck in using .coffee, something with the indent..