diff options
author | kpdecker <kpdecker@gmail.com> | 2014-12-26 00:31:57 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-12-26 00:31:57 -0600 |
commit | 396795c983273bb5ca4dc67ddc74eb12f00bf110 (patch) | |
tree | 8fa69873ed195fc7b0aa1c909373fa7ccac6785a /lib/handlebars/utils.js | |
parent | 9e907e67854ea1ae208fe061452a9c9e2ce9468b (diff) | |
download | handlebars.js-396795c983273bb5ca4dc67ddc74eb12f00bf110.zip handlebars.js-396795c983273bb5ca4dc67ddc74eb12f00bf110.tar.gz handlebars.js-396795c983273bb5ca4dc67ddc74eb12f00bf110.tar.bz2 |
Implement block parameters
Fixes #907
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r-- | lib/handlebars/utils.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js index 0878cc4..8cea50d 100644 --- a/lib/handlebars/utils.js +++ b/lib/handlebars/utils.js @@ -78,6 +78,11 @@ export function isEmpty(value) { } } +export function blockParams(params, ids) { + params.path = ids; + return params; +} + export function appendContextPath(contextPath, id) { return (contextPath ? contextPath + '.' : '') + id; } |