public static RazorEngineBuilder UseToolkitProject(this RazorEngineBuilder builder) { TkDebug.AssertArgumentNull(builder, nameof(builder), null); builder.UseProject(new ToolkitRazorProject()); return(builder); }
static RazorUtil() { var builder = new RazorEngineBuilder().UseToolkitProject().UseBaseType(BASE_TYPE); ToolkitEngine = builder.Build(); builder = new RazorEngineBuilder().UseToolkitProject().UseBaseType(BASE_LIST_TYPE); ListEngine = builder.Build(); builder = new RazorEngineBuilder().UseToolkitProject().UseBaseType(BASE_MULTI_EDIT_TYPE); MultiEditEngine = builder.Build(); TextEngine = new RazorEngineBuilder().Build(); }