Integrate Mad with ASP MVC.
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
<system.web.webPages.razor> <!-- Change pageBaseType to MadSupportedView --> <pages pageBaseType="Mad.AspMvc.MadSupportedView"> </system.web.webPages.razor>
<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>