I've added a --handlebars flag to the binary.
Would this be better as a generic --prefix flag?
Needing to compile from Jade to Handlebars seems like a very likely situation, but the --prefix flag could hypothetically support any extension target.
Adding a handlebars switch
seems very unlikely to me personally, but yeah I would much rather a prefix thing, or just jade < in > out.hbs
jade < in > out.hbs
Hah, I'm currently having to compile Jade ---> Handlebars on two projects, which is why I bring this up.
I've also got a fix kicking around for a bug in the --watch behavior I found (it doesn't work when applied to directories).
With the two you could do something like:
jade --watch --prefix='hbs' app/templates/hbs & jade --watch app/assets
I can't see anywhere where we actually support compiling to handlebars. I guess it would be useful but it's unlikely to ever merit being in core. You could always supply your own compiler and do it that way without needing to modify core at all.