|
@@ -17,14 +17,14 @@ app.on('mount', function(parent) { |
|
@@ -17,14 +17,14 @@ app.on('mount', function(parent) { |
17
|
Object.assign(app.locals, parent.locals);
|
17
|
Object.assign(app.locals, parent.locals);
|
18
|
});
|
18
|
});
|
19
|
|
19
|
|
20
|
-app.use(global.yoho.hbs({
|
|
|
21
|
- extname: '.hbs',
|
|
|
22
|
- defaultLayout: 'layout',
|
|
|
23
|
- layoutsDir: doraemon,
|
|
|
24
|
- partialsDir: path.join(__dirname, 'views/partial'),
|
|
|
25
|
- views: path.join(__dirname, 'views/action'),
|
|
|
26
|
- helpers: global.yoho.helpers
|
|
|
27
|
-}));
|
20
|
+// app.use(global.yoho.hbs({
|
|
|
21
|
+// extname: '.hbs',
|
|
|
22
|
+// defaultLayout: 'layout',
|
|
|
23
|
+// layoutsDir: doraemon,
|
|
|
24
|
+// partialsDir: path.join(__dirname, 'views/partial'),
|
|
|
25
|
+// views: path.join(__dirname, 'views/action'),
|
|
|
26
|
+// helpers: global.yoho.helpers
|
|
|
27
|
+// }));
|
28
|
|
28
|
|
29
|
// router
|
29
|
// router
|
30
|
app.use(require('./router'));
|
30
|
app.use(require('./router'));
|