emberjs/ember.js — pull request #309 by raghurajah (2011-12-28 07:03:47+00:00)
Title: Handlebar blocks [#307]

Added support for Issue [#307].

* 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