jade 好像改名叫 pug了 所以根本不存在 jade@2.0
用 npm info jade 查看最高版本就是1.11.x 了
npm 安装指定版本的命令
npm i less@1.7.5
这样的确能编译通过了.但是会报
Transformers.less is deprecated, to continue using the :less jade filter after jade@2.0.0, you will need to install jstransformer-less.
把课程学完 换jade 到 pug
用 npm info jade 查看最高版本就是1.11.x 了
npm 安装指定版本的命令
npm i less@1.7.5
这样的确能编译通过了.但是会报
Transformers.less is deprecated, to continue using the :less jade filter after jade@2.0.0, 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