diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-30 13:16:27 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-30 13:16:27 +0100 |
commit | f5f2cccbf45bc31865898e92d561061709bb3a5d (patch) | |
tree | 10f58cb5b9c1d9d3a145c302e0c27999921240aa /lib/template.js | |
parent | f45a1faa63900842c6bf0b98da72856206c26cb0 (diff) | |
download | gitbook-f5f2cccbf45bc31865898e92d561061709bb3a5d.zip gitbook-f5f2cccbf45bc31865898e92d561061709bb3a5d.tar.gz gitbook-f5f2cccbf45bc31865898e92d561061709bb3a5d.tar.bz2 |
Add "generator" to plugins blocks and filters ctx
Diffstat (limited to 'lib/template.js')
-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); |