Mad.AspMvc

Integrate Mad with ASP MVC.


Add Mad.Html to Razor

You can add Mad.Html support to Razor views by changing the razor's pageBaseType. This can be done in the view config file at /Views/web.config

Change pageBaseType
    <system.web.webPages.razor>
        <!-- Change pageBaseType to MadSupportedView -->
        <pages pageBaseType="Mad.AspMvc.MadSupportedView">
    </system.web.webPages.razor>
Add Namespaces
  <system.web.webPages.razor>
    <pages pageBaseType="Mad.AspMvc.MadSupportedView">
      <namespaces>
        <!-- Add namespaces -->
        <add namespace="Mad.Html" />
        <add namespace="Mad.Jay" />
        <add namespace="Mad.Css" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>