/// <summary> /// Create an instance of the RazorHost in the current /// AppDomain. No special handling... /// </summary> /// <returns></returns> public static RazorEngine <TBaseTemplateType> CreateRazorHost(CSharpCodeProvider codeProvider = null) { if (Current == null) { Current = new RazorEngineFactory <TBaseTemplateType>(); } return(Current.GetRazorHost(codeProvider)); }
/// <summary> /// Create an instance of the RazorHost in the current /// AppDomain. No special handling... /// </summary> /// <returns></returns> public static RazorEngine <TBaseTemplateType> CreateRazorHost() { if (Current == null) { Current = new RazorEngineFactory <TBaseTemplateType>(); } return(Current.GetRazorHost()); }