jade 好像改名叫 pug了 所以根本不存在 [email protected]
用 npm info jade 查看最高版本就是1.11.x 了
npm 安裝指定版本的命令
npm i [email protected]
這樣的確能編譯通過了.但是會報
Transformers.less is deprecated, to continue using the :less jade filter after [email protected], you will need to install jstransformer-less.
把課程學完 換jade 到 pug
用 npm info jade 查看最高版本就是1.11.x 了
npm 安裝指定版本的命令
npm i [email protected]
這樣的確能編譯通過了.但是會報
Transformers.less is deprecated, to continue using the :less jade filter after [email protected], you will need to install jstransformer-less.
把課程學完 換jade 到 pug
2017-03-01
最新回答 / lilun3119285
可以!2個文件 ?index.jade ? mixin.jade( 里面寫一個 mixin test() )在index.jade里 加入 include ./mixin.jade ? ?test() 方法里面生成的html會自動加載到index.html中
2017-02-22
Pug also provides a negated version unless (the following are therefore equivalent):
unless user.isAnonymous
p You're logged in as #{user.name}
if !user.isAnonymous
p You're logged in as #{user.name}
unless user.isAnonymous
p You're logged in as #{user.name}
if !user.isAnonymous
p You're logged in as #{user.name}
2016-12-27