public ThemeableRazorViewEngine(IThemingConfiguration configuration)
        {
            _configuration = configuration;

            ViewLocationFormats = new[]
            {
                "$ThemeDirectory/$Theme/Views/{1}/{0}.cshtml",
                "$ThemeDirectory/$Theme/Views/Shared/{0}.cshtml",
                "~/Views/{1}/{0}.cshtml",
                "~/Views/Shared/{0}.cshtml"
            };

            PartialViewLocationFormats = new[]
            {
                "$ThemeDirectory/$Theme/Views/{1}/{0}.cshtml",
                "$ThemeDirectory/$Theme/Views/Shared/{0}.cshtml",
                "~/Views/{1}/{0}.cshtml",
                "~/Views/Shared/{0}.cshtml"
            };

            MasterLocationFormats = new[]
            {
                "$ThemeDirectory/$Theme/Views/{1}/{0}.cshtml",
                "$ThemeDirectory/$Theme/Views/Shared/{0}.cshtml",
                "~/Views/{1}/{0}.cshtml",
                "~/Views/Shared/{0}.cshtml"
            };
        }
 public ThemeManager(IThemingConfiguration configuration)
 {
     _configuration = configuration;
 }
Beispiel #3
0
 public ThemeManager(IThemingConfiguration configuration)
 {
     _configuration = configuration;
 }