Jade to HTML converter [closed]

末鹿安然 提交于 2019-12-18 12:10:59

问题


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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/14426436/jade-to-html-converter

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!