I’ve got a question about layout pages in MVC3:
Is it possible to use a server-generated (e.g. loaded from a database) layout pages like:
@{
Layout = "~/Views/Shared/Handler.ashx?layout=xyz";
}
Will code inside the layout like @RenderBody() work?
If anyone of you already tried something like this, I would be happy to hear about your experiences.
You could create a custom view engine and serve those views from wherever you want (including a database).