diff options
Diffstat (limited to 'lib/output/ebook.js')
-rw-r--r-- | lib/output/ebook.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/output/ebook.js b/lib/output/ebook.js index b0b05ca..2b8fac9 100644 --- a/lib/output/ebook.js +++ b/lib/output/ebook.js @@ -44,13 +44,7 @@ EbookOutput.prototype.finish = function() { // Generate SUMMARY.html .then(function() { - return that.render('summary', that.getContext()) - .then(function(html) { - return that.writeFile( - 'SUMMARY.html', - html - ); - }); + return that.render('summary', 'SUMMARY.html', that.getContext()); }) // Start ebook-convert @@ -100,7 +94,7 @@ EbookOutput.prototype.getPDFTemplate = function(tpl) { this.getContext() ); - return this.render('pdf_'+tpl, context) + return this.renderAsString('pdf_'+tpl, context) // Inline css, include css relative to the output folder .then(function(output) { |