多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 1.在内容前面加[|]()原样输出 ~~~ //index.jd html head body helloworld |aaa ~~~ ~~~ const jade = require('jade'); console.log(jade.renderFile('./views/index.jd',{pretty:true})) //输出 <html> <head></head> <body> helloworld aaa </body> </html> ~~~ ## 2.加[.](),表示点[所有下一级]()的内容[原样输出]() ~~~ script. var a = 10; console.log(a); div. hello world good ~~~ ~~~ //输出 <script> var a = 10; console.log(a); </script> <div> hello world good </div> ~~~ ## 3.include引入外部文件 ~~~ script include ../public/base.js ~~~