diff options
Diffstat (limited to 'lib/models/templateEngine.js')
-rw-r--r-- | lib/models/templateEngine.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/templateEngine.js b/lib/models/templateEngine.js index 243bfc6..5724d55 100644 --- a/lib/models/templateEngine.js +++ b/lib/models/templateEngine.js @@ -67,7 +67,7 @@ TemplateEngine.prototype.getBlock = function(name) { @return {Nunjucks.Environment} */ -TemplateEngine.prototype.toNunjucks = function() { +TemplateEngine.prototype.toNunjucks = function(blocksOutput) { var loader = this.getLoader(); var blocks = this.getBlocks(); var filters = this.getFilters(); @@ -101,7 +101,7 @@ TemplateEngine.prototype.toNunjucks = function() { // Add blocks blocks.forEach(function(block) { var extName = block.getExtensionName(); - var Ext = block.toNunjucksExt(context); + var Ext = block.toNunjucksExt(context, blocksOutput); env.addExtension(extName, new Ext()); }); |