#Themed Razor ViewEngines
Razor ViewEngines with Theme support for new or existing ASP.NET MVC 4 application.
- When a "theme" is configured, use the views under the corresponding
Themesfolder - If the requested view does not exist, fallback to use the original ASP.NET MVC view route as a default
- Support Areas (make sure to copy web.config, ViewStart.cshtml)
- Support Partial Views
PM> Install-Package ThemedViewEngines.MVC4
Once installed, the following is added to your ASP.NET MVC project:
~\App_Start\ThemedViewEnginesBootstrapper.cs- A sample theme folder and files
~\Themes\Sample\Views\Shared\_Layout.cshtml - An appSettings
ThemeNamein web.config
You can implement your own logics by implementing the interface IThemeSelectorService
public interface IThemeSelectorService
{
string GetThemeName();
void SetThemeName(string themeName);
}You can solve these by using ASP.NET bundles.
- Cache support
- WebForm ViewEngine