Add "generator" to plugins blocks and filters ctx

This commit is contained in:
Samy Pessé
2015-01-30 13:16:27 +01:00
parent f45a1faa63
commit f5f2cccbf4
+2 -1
View File
@@ -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);