Spark View Engine: How to set default master page name?

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-12-28T15:38:36Z Indexed on 2010/12/28 18:54 UTC
Read the original article Hit count: 398

I use Spark View Engine with nested master pages. I have Application.spark which defines the basic layout of the website. Then there are several other masters which themselves use Application.spark as master page (Default.spark, SinlgeColumn.spark, Gallery.spark, ...)

If no master page is specified in a view file, then automatically Application.spark is choosen by the Spark View Engine. Since almost all my pages use "Default.spark" as master, is there a way to configure this globally?

The other possibilities would be:

  1. Set the master in each spark file individually <use master="Default" />. But that's really annoying.

  2. Rename my master files (Default.spark <-> Application.spark) but that really doesn't make any sense in naming.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about configuration