mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Add "generator" to plugins blocks and filters ctx
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user