summaryrefslogtreecommitdiffstats
path: root/lib/models/templateBlock.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/templateBlock.js')
-rw-r--r--lib/models/templateBlock.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/models/templateBlock.js b/lib/models/templateBlock.js
index ab4cf3e..36f7c5b 100644
--- a/lib/models/templateBlock.js
+++ b/lib/models/templateBlock.js
@@ -71,6 +71,8 @@ TemplateBlock.prototype.getExtensionName = function() {
@return {Nunjucks.Extension}
*/
TemplateBlock.prototype.toNunjucksExt = function(mainContext, blocksOutput) {
+ blocksOutput = blocksOutput || {};
+
var that = this;
var name = this.getName();
var endTag = this.getEndTag();