emberjs/ember.js — pull request #417 by raghurajah (2012-01-19 23:07:49+00:00)
Title: Block support in handlebars

Added support for Issue [#307]. Replaces pull request [#309]

* view helper now collect the block and context into a yieldContent/yieldContext of the child view
* Introduced a yield helper, that creates a virtual view to delegate to yieldContent
* Changed the logic to determine when to treat blocks as templates. Made it more lazy moving it into the computed property - template.
* Added some basic tests around block invocation and correctness of context at different levels