dhanji/sitebricks — pull request #66 by martinsb (2013-10-30 23:52:14+00:00)
Title: FIX: @EmbedAs widget loses pageVar inside a @Repeat loop

This PR fixes a problem when MVEL compiler throws an Exception if user references the assigned pageVar object from a @Repeat widget inside an @EmbedAs widget.

Now we pass an additional "parentContext" argument to the EmbeddedRespondFactory, which before was creating a StringBuilderRespond with an empty Object instead.

I have attached acceptance tests to demonstrate the issue, including a nested @Repeat loop case as well.