diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-15 21:14:25 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-15 21:14:25 +0100 |
commit | b4fcd2da14159106cfe1911ba6321e112ffb9722 (patch) | |
tree | 09679f62f3f67ba6b271858f781b7b4ee5a02e27 /lib/plugins | |
parent | e3c92cce77432849de5b9249b6ffb99045a31314 (diff) | |
download | gitbook-b4fcd2da14159106cfe1911ba6321e112ffb9722.zip gitbook-b4fcd2da14159106cfe1911ba6321e112ffb9722.tar.gz gitbook-b4fcd2da14159106cfe1911ba6321e112ffb9722.tar.bz2 |
Plugins should be relative to output
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/index.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/plugins/index.js b/lib/plugins/index.js index 33a2047..f31f1b2 100644 --- a/lib/plugins/index.js +++ b/lib/plugins/index.js @@ -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; |