summaryrefslogtreecommitdiffstats
path: root/lib/template/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template/index.js')
-rw-r--r--lib/template/index.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/template/index.js b/lib/template/index.js
index a130088..8a52392 100644
--- a/lib/template/index.js
+++ b/lib/template/index.js
@@ -70,12 +70,10 @@ function TemplateEngine(output) {
TemplateEngine.prototype.bindContext = function(func) {
var ctx = {
ctx: this.ctx,
- book: this.book,
- output: this.output
+ output: this.output,
+ generator: this.output.name
};
- error.deprecateField(ctx, 'generator', this.output.name, 'generator property is deprecated, use output.name instead');
-
return _.bind(func, ctx);
};