...
|
...
|
@@ -17,14 +17,14 @@ app.on('mount', function(parent) { |
|
|
Object.assign(app.locals, parent.locals);
|
|
|
});
|
|
|
|
|
|
app.use(global.yoho.hbs({
|
|
|
extname: '.hbs',
|
|
|
defaultLayout: 'layout',
|
|
|
layoutsDir: doraemon,
|
|
|
partialsDir: path.join(__dirname, 'views/partial'),
|
|
|
views: path.join(__dirname, 'views/action'),
|
|
|
helpers: global.yoho.helpers
|
|
|
}));
|
|
|
// app.use(global.yoho.hbs({
|
|
|
// extname: '.hbs',
|
|
|
// defaultLayout: 'layout',
|
|
|
// layoutsDir: doraemon,
|
|
|
// partialsDir: path.join(__dirname, 'views/partial'),
|
|
|
// views: path.join(__dirname, 'views/action'),
|
|
|
// helpers: global.yoho.helpers
|
|
|
// }));
|
|
|
|
|
|
// router
|
|
|
app.use(require('./router'));
|
...
|
...
|
|