wycats/handlebars.js — pull request #385 by AndrewHenderson (2012-12-08 00:57:22+00:00)
Title: New Helper: Each Include Parent - (Works with partials)

This helper allows a parent context to be accessed when using partial templates inside of an each.
Note: It has no dependencies other than Handlebars. Uses a local _each function that is a port of jQuey.each.
Usage: {{#eachIncludeParent context parent=this}}{{> template-partial }}{{/eachIncludeParent}}
See demo: jsFiddle - http://jsfiddle.net/AndrewHenderson/kQZpu/4/
Comment Thread: https://github.com/wycats/handlebars.js/issues/182#issuecomment-11151298