There's grunt-contrib-handlebars and grunt-grunt-contrib-haml, but I need the combination of the two. Say I have a "hamlbars" template like the following:
%div
{{ name }}
I need this to be precompiled into JavaScript just as grunt-contrib-handlebars
would do to
<div>
{{ name }}
</div>
There's also grunt-hamlbars but I could not get it to work. It however only compiles hamlbars to handlebars, I need to take a step further and precompile the handlebars.
Perhaps I'm taking the wrong approach? Should I just stick with normal HTML and handlebars? Is there a seamless way to compile HAML into HTML then precompile as a handlebars file, all using Grunt?