fix package.js file to work with new packaging system
Merge branch 'master' into packaging
change region property to _region so no conflict with region function
wip - fix up rendering transactions
fix destroy regions when setting new layout template
add onComplete callback feature to beginRendering function

Now users won't call endRendering themselves. they'll pass a callback to
beginRendering that will automatically get called at the right time.
fix render method to properly set data

it's possible that the data value is a falsy value like null, false, 0, or an
empty string. So if that's the case, we still want to set the data value on the
dynamic template.
fix destroyRegions bug

In the yield function, if the dynamic templated had already been
inserted, destroy it and create another one.

Git rid of destroyRegions because it didn't do what was expected. For
example, if the layout template was originally "LayoutOne":

// change it to undefined thereby deleting all rgions
layout.template(undefined);

// set it back to the original so in flush, Spacebars.include doesn't
// re-render
layout.template("LayoutOne");

// this will render to a DynamicTemplate (region) that hasn't been
// inserted into the DOM! Because insert happens in {{> yield}}
layout.render("PageOne');

Solution: Never delete regions, but call their destroy() methods if
creating a new view.
add clearRegionData function

Clears data contexts for all regions.
Merge branch 'master' into packaging
Fixed up issues to reflect conversation
Whoops!
Added test + fix for not passing data into render.

The idea is that you *have* to explicitly set data.
There’s no concept of “keeping” the data from the last render.
Updated package.js
Simplified tests — moved failing test case to IDT.

cc @cmather.
No sense in being able to clear region data.

You have to set region data when you render to it.
So there’s no possible situation where region data could be “hanging around” for the next render.

cc @cmather.
wip change to old package system for now
Merge branch 'packaging' into devel
update history
Merge branch 'devel'