Authored by 陈峰

change engine

@@ -18,7 +18,7 @@ app.on('mount', function(parent) { @@ -18,7 +18,7 @@ app.on('mount', function(parent) {
18 Object.assign(app.locals, parent.locals); 18 Object.assign(app.locals, parent.locals);
19 }); 19 });
20 20
21 -app.use(global.yoho.hbs({ 21 +app.engine('.hbs', hbs({
22 extname: '.hbs', 22 extname: '.hbs',
23 defaultLayout: 'layout', 23 defaultLayout: 'layout',
24 layoutsDir: doraemon, 24 layoutsDir: doraemon,