diff options
author | kpdecker <kpdecker@gmail.com> | 2014-01-17 20:01:43 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-01-17 23:15:18 -0600 |
commit | 49fcf10de21b89c504d641e72ce6c31c2feaed8f (patch) | |
tree | 5d974781339357d0f35590968b520df4f88fa3c3 /lib/handlebars/utils.js | |
parent | ace2896ec876104f5bd220744124e7370fe6b9a2 (diff) | |
download | handlebars.js-49fcf10de21b89c504d641e72ce6c31c2feaed8f.zip handlebars.js-49fcf10de21b89c504d641e72ce6c31c2feaed8f.tar.gz handlebars.js-49fcf10de21b89c504d641e72ce6c31c2feaed8f.tar.bz2 |
Add contextPath tracking in builtin helpers
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r-- | lib/handlebars/utils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js index 63148e4..f2f1a54 100644 --- a/lib/handlebars/utils.js +++ b/lib/handlebars/utils.js @@ -75,3 +75,7 @@ export function isEmpty(value) { return false; } } + +export function appendContextPath(contextPath, id) { + return (contextPath ? contextPath + '.' : '') + id; +} |