diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-27 12:49:08 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-27 12:49:08 +0100 |
commit | 54e1be1e775945b0f7e397c36a1ff1413c63f475 (patch) | |
tree | e08fe8e9738d02aa234ece356cffd11d35c9434e /lib/plugin.js | |
parent | ce259eb4ec74dbcbff10938125ff00ba145befc3 (diff) | |
download | gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.zip gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.tar.gz gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.tar.bz2 |
Parse plugins in book instead of generator
Diffstat (limited to 'lib/plugin.js')
-rw-r--r-- | lib/plugin.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugin.js b/lib/plugin.js index 99e8402..ec55513 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -78,7 +78,7 @@ Plugin.prototype._getResources = function(base) { // Dynamic function if(typeof book === "function") { - // Call giving it the context of our generator + // Call giving it the context of our book return Q().then(book.bind(this.book)); } @@ -159,7 +159,7 @@ Plugin.prototype.resolveFile = function(filename) { // Resolve file path Plugin.prototype.callHook = function(name, data) { - // Our generator will be the context to apply + // Our book will be the context to apply var context = this.book; var hookFunc = this.infos.hooks? this.infos.hooks[name] : null; @@ -198,7 +198,7 @@ Plugin.prototype.copyAssets = function(out, options) { // Extract data from a list of plugin -Plugin.normalize = function(plugins, generator, options) { +Plugin.normalize = function(plugins, options) { options = _.defaults(options || {}, { assetsBase: "book" }); |