246440
nodeclub 使用如下方式: app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'html'); app.engine('html', require('ejs-mate')); app.locals._layoutFile = 'layout.html';
在layout.html 文件中: config.description 是config.js 中定义的变量.
我的使用如下: app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); 在index.ejs 文件中: 但是web页面却显示 config 没有定义, 我应该怎么使用config.js