diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/template.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/template.js b/lib/template.js index e30074d..29ce0a9 100644 --- a/lib/template.js +++ b/lib/template.js @@ -128,7 +128,8 @@ TemplateEngine.prototype.bindContext = function(func) { return function() { var ctx = { ctx: this.ctx, - book: that.book + book: that.book, + generator: that.book.options.generator }; return func.apply(ctx, arguments); |