BlogEngine.Core.BlogSettings.IsThemeRazor C# (CSharp) Method

IsThemeRazor() public static method

Determines if themeName is a razor theme.
public static IsThemeRazor ( string themeName ) : bool
themeName string
return bool
        public static bool IsThemeRazor(string themeName)
        {
            string path = HostingEnvironment.MapPath(string.Format("~/themes/{0}/site.cshtml", themeName));
            return File.Exists(path);
        }