Refactor template compilation

Always use persona as a fallback for templates
This commit is contained in:
Peter Jaszkowiak
2018-01-14 23:26:35 -07:00
parent 9c1faa7643
commit ed9166b796
3 changed files with 89 additions and 101 deletions

View File

@@ -138,10 +138,13 @@ Plugins.reloadRoutes = function (callback) {
});
};
// DEPRECATED: remove in v1.8.0
Plugins.getTemplates = function (callback) {
var templates = {};
var tplName;
winston.warn('[deprecated] Plugins.getTemplates is DEPRECATED to be removed in v1.8.0');
Plugins.data.getActive(function (err, plugins) {
if (err) {
return callback(err);