...
|
...
|
@@ -5,8 +5,7 @@ |
|
|
*/
|
|
|
|
|
|
var express = require('express'),
|
|
|
path = require('path'),
|
|
|
hbs = require('express-handlebars');
|
|
|
path = require('path');
|
|
|
|
|
|
var app = express();
|
|
|
|
...
|
...
|
@@ -18,12 +17,12 @@ app.on('mount', function(parent) { |
|
|
Object.assign(app.locals, parent.locals);
|
|
|
});
|
|
|
|
|
|
app.set('views', path.join(__dirname, 'views/action'));
|
|
|
app.engine('.hbs', hbs({
|
|
|
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: global.yoho.helpers
|
|
|
}));
|
|
|
|
...
|
...
|
|