Clara Clara - 1 year ago 220
HTML Question

Jade to HTML converter

I have started writing an application using nodejs and jade, but after a while my team decided to switch to Django. I would still like to use the web pages written using jade, without having to re-write them by hand.

Does anyone know of a tool that transforms jade code into html?
As far as I've seen, most of the tools involving jade concentrate on the opposite transformation.

Answer Source

Jade is supposed to come with a command line utility that does exactly that.

See here https://github.com/visionmedia/jade#jade1

Or see just above it for a make file that runs it.

-

Edit - it seems Jade was renamed to Pug - see https://github.com/pugjs/pug/issues/2184

but the answer remains - Pug comes with a command line tool - install it with npm install pug-cli -g

Then you can run pug my_template.pug which will produce my_template.html