diff options
Diffstat (limited to 'lib/handlebars/base.js')
-rw-r--r-- | lib/handlebars/base.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js index 50aa3f8..d75e965 100644 --- a/lib/handlebars/base.js +++ b/lib/handlebars/base.js @@ -128,7 +128,11 @@ function registerDefaultHelpers(instance) { data.contextPath = contextPath + key; } } - ret = ret + fn(context[key], { data: data }); + + ret = ret + fn(context[key], { + data: data, + blockParams: Utils.blockParams([context[key], key], [contextPath + key, null]) + }); } if(context && typeof context === 'object') { |