I'm able to get templates to render fine, until I try to include master pages. I get the content rendered, but without the master. The code looks like this:
var settings = new SparkSettings();
settings.SetPageBaseType(typeof (WebApiSparkView));
var engine = new SparkViewEngine(settings);
var descriptor = new SparkViewDescriptor().AddTemplate(view.ViewName + ".spark");
var entry = engine.CreateInstance(descriptor);
var writer = new StringWriter();
entry.RenderView(writer);
return writer.ToString();
Do I need to add anything else to get the default layout conventions (/Views/Shared/Application.spark, etc)?
Also, I would like to add .shade support, but I've found that adding another Template to the descriptor is fail.
Thanks for the help.