...
|
...
|
@@ -17,12 +17,11 @@ app.on('mount', function(parent) { |
|
|
delete parent.locals.settings; // 不继承父 App 的设置
|
|
|
Object.assign(app.locals, parent.locals);
|
|
|
});
|
|
|
app.set('views', path.join(__dirname, 'views/action'));
|
|
|
app.use(global.yoho.hbs({
|
|
|
extname: '.hbs',
|
|
|
defaultLayout: 'layout',
|
|
|
layoutsDir: doraemon,
|
|
|
partialsDir: path.join(__dirname, 'views/partial', `${doraemon}/partial`),
|
|
|
partialsDir: path.join(__dirname, 'views/partial'),
|
|
|
views: path.join(__dirname, 'views/action'),
|
|
|
helpers: Object.assign({}, global.yoho.helpers, helpers)
|
|
|
}));
|
...
|
...
|
|