--doctype <str> Specify the doctype on the command line (useful if it is not specified by the template) / 在命令行中指定文档类型(如果在模板中没有被指定)
Examples:
# 编译整个目录
$ jade templates
# 生成 {foo,bar}.html
$ jade {foo,bar}.jade
# 在标准IO下使用jade
$ jade < my.jade > my.html
# 在标准IO下使用jade
$ echo 'h1 Jade!' | jade
# foo, bar 目录渲染到 /tmp
$ jade foo bar --out /tmp
实例:
// 比如说我们需要编译index.jade文件,默认编译到同文件夹下的同名html 文件中
jade index.jade// 如果我们要格式化输出 index.html 文件,只需要添加 -P 参数即可
jade -P index.jade
// 如果我们要实现监听和自动编译,需要使用 -w 参数
jade -P -w index.jade









