尝试在jade中包含文件时出错
html
include head.jade
body
{
errno: -2,
code: "ENOENT",
syscall: "open",
path: "/server/layouts/head.jade"
}
路径正确100%,请帮我解决这个问题!
答案 0 :(得分:1)
使用./
表示法确保从当前路径加载。
html
include ./head.jade
body