summaryrefslogtreecommitdiffstats
path: root/lib/output/website/onPage.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-05-05 11:00:05 +0200
committerSamy Pesse <samypesse@gmail.com>2016-05-05 11:00:05 +0200
commit34947b5e207e84ef43a8194c0ec7bac19dccf709 (patch)
tree06e687700d95590cae678f8bef381e8a62dc0129 /lib/output/website/onPage.js
parentc621380b664bcbef087df571b662e7a34e098168 (diff)
downloadgitbook-34947b5e207e84ef43a8194c0ec7bac19dccf709.zip
gitbook-34947b5e207e84ef43a8194c0ec7bac19dccf709.tar.gz
gitbook-34947b5e207e84ef43a8194c0ec7bac19dccf709.tar.bz2
Add mode TemplateOutput to represent {content + blocks} from template
Diffstat (limited to 'lib/output/website/onPage.js')
-rw-r--r--lib/output/website/onPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output/website/onPage.js b/lib/output/website/onPage.js
index 16a5c39..14c7b22 100644
--- a/lib/output/website/onPage.js
+++ b/lib/output/website/onPage.js
@@ -67,8 +67,8 @@ function onPage(output, page) {
return Templating.renderFile(engine, prefix + '/page.html', context)
// Write it to the disk
- .then(function(html) {
- return writeFile(output, filePath, html);
+ .then(function(tplOut) {
+ return writeFile(output, filePath, tplOut.getContent());
});
});
}