在模板中包含.jade文件时出现路径错误

时间:2014-01-02 06:07:41

标签: node.js express pug

文件夹结构:

./jglobal/common.jade
./site1/template.jade

template.jade:

doctype html
html(lang='#{meta.lang_code}')
  head
    include ../jglobal/common

当我通过命令行模式渲染模板时,我收到了这个错误:

the "filename" option is required to use "include" with "relative" paths

感谢任何提示!

0 个答案:

没有答案