Any luck on this?
I have been able to host a spark view in a System.Web.Mvc.ViewUserControl call Html.RenderView() from the spark view. I bet I could also host a Spark view within a System.Web.Mvc.ViewUserControl using Html.RenderView() as well. This introduces some options (all with overhead) of sharing the master page:
Write a simple wrapper .ascx for you .spark views. They'd had the same model object, the wrapper could call HtmlRenderPartial on the wrapped view.
(vice versa) Write a simple wrapper .spark for your .ascx controls.
When I tried have a view Index.spark use masterpage Site.Master, I received error message:
The view 'Index' or its master could not be found. The following locations were searched:
~/Views/LfgSettings/Index.aspx
~/Views/LfgSettings/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
Layouts\Site.spark
Shared\Site.spark
I don't know what these paths represent though, it looks like the search path for the Index view and the search paths for its masterpage. It seems though the .spark file cannot use a .master masterpage.
I wonder though if its possible to write a wrapper .master file that calls into a .spark file which has the correct content regions. Some Reflector'ing would probably dig up some interfaces that could be made to work together.