EventedMind/iron-router — pull request #325 by aslagle (2013-12-06 20:25:08+00:00)
Title: Additional argument to yield

I'd like to call yield from within an each block, and use the current context when rendering the yield template.

A simple way would be to use yieldTemplates and pass the context to yield like this:

{{#each items}}
{{../yield 'template' this}}
{{/each}}

The yield helper has an options argument, but it wasn't being passed along to the template. Any reason why not? Is there a better way to do this?

Thanks!