Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jade to HTML converter [closed]

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.

like image 350
Clara Avatar asked Jan 20 '13 16:01

Clara


2 Answers

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

like image 137
Iftah Avatar answered Nov 07 '22 01:11

Iftah


if you want something online. you can try http://naltatis.github.io/jade-syntax-docs/ or http://jade-lang.com/demo/

like image 20
tldr Avatar answered Nov 07 '22 03:11

tldr