summaryrefslogtreecommitdiffstats
path: root/lib/template/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-14 22:55:48 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-14 22:55:48 +0100
commit8628c87be479015b204520bb058b0cc823859d70 (patch)
treee2924a4c569d515c25f05a882a28d7f697833da8 /lib/template/index.js
parentfef822145d43d80dbbefa8712eab88ad7044d6c1 (diff)
downloadgitbook-8628c87be479015b204520bb058b0cc823859d70.zip
gitbook-8628c87be479015b204520bb058b0cc823859d70.tar.gz
gitbook-8628c87be479015b204520bb058b0cc823859d70.tar.bz2
Interpolate template before running it
Diffstat (limited to 'lib/template/index.js')
-rw-r--r--lib/template/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template/index.js b/lib/template/index.js
index 6074f51..3f74267 100644
--- a/lib/template/index.js
+++ b/lib/template/index.js
@@ -27,7 +27,7 @@ function TemplateEngine(output) {
this.log = this.book.log;
// Create file loader
- this.loader = new Loader(output);
+ this.loader = new Loader(this);
// Create nunjucks instance
this.env = new nunjucks.Environment(