diff options
Diffstat (limited to 'lib/template/index.js')
-rw-r--r-- | lib/template/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/template/index.js b/lib/template/index.js index eb62549..078dd6c 100644 --- a/lib/template/index.js +++ b/lib/template/index.js @@ -70,9 +70,10 @@ function TemplateEngine(output) { TemplateEngine.prototype.bindContext = function(func) { var ctx = { ctx: this.ctx, - output: this.output, - generator: this.output.name + book: this.book, + output: this.output }; + error.deprecateField(ctx, 'generator', this.output.name, '"generator" property is deprecated, use "output.generator" instead'); return _.bind(func, ctx); }; |