summaryrefslogtreecommitdiffstats
path: root/lib/page
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-14 23:05:37 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-14 23:05:37 +0100
commitd6bd4a0d67dd2f61e667aefebf96e279f607ce54 (patch)
treed5a4a12654c6775a1a8924a0b65cff6195fb18b9 /lib/page
parent8628c87be479015b204520bb058b0cc823859d70 (diff)
downloadgitbook-d6bd4a0d67dd2f61e667aefebf96e279f607ce54.zip
gitbook-d6bd4a0d67dd2f61e667aefebf96e279f607ce54.tar.gz
gitbook-d6bd4a0d67dd2f61e667aefebf96e279f607ce54.tar.bz2
Add test for file variables in templating
Diffstat (limited to 'lib/page')
-rw-r--r--lib/page/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/page/index.js b/lib/page/index.js
index 51416f0..54255dd 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -173,6 +173,11 @@ Page.prototype.toHTML = function(output) {
return pipeline.output()
.then(that.update);
+ })
+
+ // Return content itself
+ .then(function() {
+ return that.content;
});
};