|
|
@ -42,10 +42,14 @@ Templates.compile = function(callback) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
plugins.getTemplates(function(err, pluginTemplates) {
|
|
|
|
async.waterfall([
|
|
|
|
|
|
|
|
async.apply(plugins.fireHook, 'static:templates.precompile', {}),
|
|
|
|
|
|
|
|
async.apply(plugins.getTemplates)
|
|
|
|
|
|
|
|
], function(err, pluginTemplates) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return callback(err);
|
|
|
|
return callback(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
winston.verbose('[meta/templates] Compiling templates');
|
|
|
|
winston.verbose('[meta/templates] Compiling templates');
|
|
|
|
rimraf.sync(viewsPath);
|
|
|
|
rimraf.sync(viewsPath);
|
|
|
|
mkdirp.sync(viewsPath);
|
|
|
|
mkdirp.sync(viewsPath);
|
|
|
|