Adding a handlebars flag so we can compile from Jade to Handlebars #729

wants to merge 1 commit into


None yet

3 participants


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.

tj commented Aug 2, 2012

seems very unlikely to me personally, but yeah I would much rather a prefix thing, or just 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
Pug member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment