summaryrefslogtreecommitdiffstats
path: root/lib/generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generator.js')
-rw-r--r--lib/generator.js18
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/generator.js b/lib/generator.js
index 4ff1373..6557461 100644
--- a/lib/generator.js
+++ b/lib/generator.js
@@ -14,32 +14,18 @@ var BaseGenerator = function(book) {
}
});
- // Base for assets in plugins
- this.pluginAssetsBase = "book";
-
_.bindAll(this);
};
BaseGenerator.prototype.callHook = function(name, data) {
- return this.plugins.hook(name, data);
+ return this.book.plugins.hook(name, data);
};
// Prepare the genertor
BaseGenerator.prototype.prepare = function() {
var that = this;
- return this.preparePlugins()
- .then(function() {
- return that.callHook("init");
- });
-};
-
-BaseGenerator.prototype.preparePlugins = function() {
- var that = this;
- return Plugin.normalize(that.book.plugins)
- .then(function(_plugins) {
- that.plugins = _plugins;
- });
+ return that.callHook("init");
};
// Write a parsed file to the output