コード例 #1
0
        public static RazorEngineBuilder UseToolkitProject(this RazorEngineBuilder builder)
        {
            TkDebug.AssertArgumentNull(builder, nameof(builder), null);

            builder.UseProject(new ToolkitRazorProject());
            return(builder);
        }
コード例 #2
0
        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();
        }