summaryrefslogtreecommitdiffstats
path: root/lib/generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generator.js')
-rw-r--r--lib/generator.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/generator.js b/lib/generator.js
index d8fd38a..f495d8d 100644
--- a/lib/generator.js
+++ b/lib/generator.js
@@ -3,6 +3,8 @@ var path = require("path");
var Q = require("q");
var fs = require("./utils/fs");
+var Plugin = require("./plugin");
+
var BaseGenerator = function(book) {
this.book = book;
@@ -28,7 +30,10 @@ BaseGenerator.prototype.prepare = function() {
BaseGenerator.prototype.preparePlugins = function() {
var that = this;
- return Q();
+ return Plugin.normalize(that.book.plugins)
+ .then(function(_plugins) {
+ that.plugins = _plugins;
+ });
};
// Write a parsed file to the output