Authored by zhangxiaoru

资讯首页

... ... @@ -69,7 +69,7 @@ const index = (req, res) => {
liked: true,
like: '8'
}
]
]
},
helpers: {
// import component, path depends on your project
... ...
... ... @@ -12,7 +12,7 @@ var app = express();
// set view engin
var doraemon = path.join(__dirname, '../../doraemon/views'); // parent view root
var partials = path.join(__dirname, './views'); // parent view root
// var partials = path.join(__dirname, './views'); // parent view root
app.on('mount', function(parent) {
delete parent.locals.settings; // 不继承父 App 的设置
... ...