moving pluginRoutes to top of route stack (like others), put app.load hook behind plugins' ready callback

This commit is contained in:
Julian Lam
2014-03-10 21:54:30 -04:00
parent 661dff2f9b
commit ffa42ffea3
3 changed files with 10 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ function compileTemplates(pluginTemplates) {
winston.info('[themes] Compiling templates');
rimraf.sync(nconf.get('views_dir'));
mkdirp.sync(nconf.get('views_dir'));
utils.walk(nconf.get('base_templates_path'), function(err, baseTpls) {
utils.walk(nconf.get('theme_templates_path'), function (err, themeTpls) {
var paths = pluginTemplates;
@@ -123,7 +123,7 @@ function compileTemplates(pluginTemplates) {
}
});
});
});
});
}
function handleErrors(err, req, res, next) {