From f5f2cccbf45bc31865898e92d561061709bb3a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Fri, 30 Jan 2015 13:16:27 +0100 Subject: [PATCH] Add "generator" to plugins blocks and filters ctx --- lib/template.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/template.js b/lib/template.js index e30074db0..29ce0a9c5 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);