summaryrefslogtreecommitdiffstats
path: root/lib/generators/ebook.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-27 12:49:08 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-27 12:49:08 +0100
commit54e1be1e775945b0f7e397c36a1ff1413c63f475 (patch)
treee08fe8e9738d02aa234ece356cffd11d35c9434e /lib/generators/ebook.js
parentce259eb4ec74dbcbff10938125ff00ba145befc3 (diff)
downloadgitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.zip
gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.tar.gz
gitbook-54e1be1e775945b0f7e397c36a1ff1413c63f475.tar.bz2
Parse plugins in book instead of generator
Diffstat (limited to 'lib/generators/ebook.js')
-rw-r--r--lib/generators/ebook.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index 481f547..237e22e 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -20,9 +20,9 @@ var Generator = function(book, format) {
util.inherits(Generator, BaseGenerator);
Generator.prototype.prepareTemplates = function() {
- this.templates["page"] = this.plugins.template("ebook:page") || path.resolve(this.options.theme, 'templates/ebook/page.html');
- this.templates["summary"] = this.plugins.template("ebook:summary") || path.resolve(this.options.theme, 'templates/ebook/summary.html');
- this.templates["glossary"] = this.plugins.template("ebook:glossary") || path.resolve(this.options.theme, 'templates/ebook/glossary.html');
+ this.templates["page"] = this.book.plugins.template("ebook:page") || path.resolve(this.options.theme, 'templates/ebook/page.html');
+ this.templates["summary"] = this.book.plugins.template("ebook:summary") || path.resolve(this.options.theme, 'templates/ebook/summary.html');
+ this.templates["glossary"] = this.book.plugins.template("ebook:glossary") || path.resolve(this.options.theme, 'templates/ebook/glossary.html');
return Q();
};