diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-22 14:50:55 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-22 14:50:55 +0100 |
commit | 642ba72a1d0680107357083a79560c2ccc931457 (patch) | |
tree | 34be30a7b84da734703093391483a727d4f19964 /lib/template/index.js | |
parent | 71144db09c150f6499d977863dbccf12ce05638b (diff) | |
download | gitbook-642ba72a1d0680107357083a79560c2ccc931457.zip gitbook-642ba72a1d0680107357083a79560c2ccc931457.tar.gz gitbook-642ba72a1d0680107357083a79560c2ccc931457.tar.bz2 |
Load all filters and blocks from plugins in output's template
Diffstat (limited to 'lib/template/index.js')
-rw-r--r-- | lib/template/index.js | 6 |
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); }; |