Plugins should be relative to output

This commit is contained in:
Samy Pesse
2016-02-15 21:14:25 +01:00
parent e3c92cce77
commit b4fcd2da14
+3 -4
View File
@@ -10,8 +10,9 @@ PluginsManager is an interface to work with multiple plugins at once:
- Call hooks for all plugins, etc
*/
function PluginsManager(book) {
this.book = book;
function PluginsManager(output) {
this.output = output;
this.book = output.book;
this.plugins = [];
}
@@ -56,6 +57,4 @@ PluginsManager.prototype.load = function(name) {
});
};
module.exports = PluginsManager;