diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-21 19:15:57 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-21 19:15:57 +0100 |
commit | bd931c5cbdced15701a9bba4806350dedc359221 (patch) | |
tree | 33933ebc92a2df91d6d61b0ad83e50c036edb3d5 /lib/template.js | |
parent | c6e3a272849ce11a44889dd31e6a5889bdd648fe (diff) | |
download | gitbook-bd931c5cbdced15701a9bba4806350dedc359221.zip gitbook-bd931c5cbdced15701a9bba4806350dedc359221.tar.gz gitbook-bd931c5cbdced15701a9bba4806350dedc359221.tar.bz2 |
Adapt themes website templates
Diffstat (limited to 'lib/template.js')
-rw-r--r-- | lib/template.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/template.js b/lib/template.js index e4df84c..27234f2 100644 --- a/lib/template.js +++ b/lib/template.js @@ -1,7 +1,9 @@ var _ = require("lodash"); var Q = require("q"); + var nunjucks = require("nunjucks"); + var TemplateEngine = function(book) { this.book = book; @@ -22,7 +24,7 @@ TemplateEngine.prototype.renderFile = function(filename) { return that.book.statFile(filename) .then(function(stat) { var context = { - // Variabels from book.json + // Variables from book.json book: that.book.options.variables, // infos about the file |