【发布时间】:2015-07-14 09:35:15
【问题描述】:
这是我在 Gruntfile.js 中编写的代码,我将 JSON 文件传递给 Jade。
compile: {
files: {
// some files
},
options: {
pretty: true,
// Passing .Json file as data to jade
data: grunt.file.readJSON("./src/jade/config.json")
}
如何访问 .jade 文件中的数据?我环顾四周,但找不到解决方案。
【问题讨论】:
标签: javascript node.js gruntjs pug