summaryrefslogtreecommitdiffstats
path: root/lib/template.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template.js')
-rw-r--r--lib/template.js4
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