Merge pull request #1206 from BitBangersCode/plugin-templates-fix

Fix importing of templates served by plugins
v1.18.x
psychobunny 11 years ago
commit bff722925f

@ -419,7 +419,7 @@ var fs = require('fs'),
var templatesPath = path.join(__dirname, '../node_modules', plugin.id, plugin.templates);
utils.walk(templatesPath, function(err, pluginTemplates) {
pluginTemplates.forEach(function(pluginTemplate) {
templates[pluginTemplate.replace(templatesPath, '').substring(1)] = pluginTemplate;
templates["/" + pluginTemplate.replace(templatesPath, '').substring(1)] = pluginTemplate;
});
next(err);

Loading…
Cancel
Save