I\'ve got a handlebar template that loads a partial for a sub-element.
I would need to access a variable from the parent context in the calling template, from within
Just in case anyone stumbles across this question. This functionality exists now in Handlebars.
Do this:
{{#each items}} {{! Will pass the current item in items to your partial }} {{> item-template this}} {{/each}}