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.
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
if you want something online. you can try http://naltatis.github.io/jade-syntax-docs/ or http://jade-lang.com/demo/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With