Articles : Page 1 of 1

  • How to Build a Custom View Engine with Theme Support

    How to Build a Custom View Engine with Theme Support

    May 10
    16

    All good blogging platforms have theme support. So while working on WeBlog I initially implemented theme support by using a base controller class. The base controller class was responsible for dynamically setting the master page at runtime. I did this by assigning the action’s MasterName property in the OnActionExecuted event. Here is a short snippet of code which outlines the process. public class BaseController { protected override void OnActionExecuted(ActionExecutedContext filterContext)...

    • MvcContrib
    • Mono
    • DisplayTemplates


  • 1