RazorTemplating:Razor模板引擎在.NET Core 3+中的控制台,Web,服务,桌面工作负载中将Razor视图(.cshtml文件)呈现为String

上传者: 42127937 | 上传时间: 2024-04-24 09:21:15 | 文件大小: 1.91MB | 文件类型: ZIP
剃刀模板 像这样使用进行HTML模板从未如此简单。 使用此库可以轻松地将.cshtml文件渲染为字符串。 该项目使用来预编译视图。 支持的应用程序类型 .NET Core 3.0 .NET Core 3.1 NET 5 安慰 ✓ ✓ ✓ 阿皮 ✓ ✓ ✓ 多媒体 ✓ ✓ ✓ 工人服务 ✓ ✓ ✓ WPF ✓ ✓ ✓ WinForms ✓ ✓ ✓ 应用领域 电子邮件模板 报告生成等 安装Nuget软件包 该库可以作为 使用.NET CLI dotnet add package Razor.Templating.Core 使用软件包参考.csproj < PackageReference xss=removed xss=removed> 简单用法: using Razor .

文件下载

资源详情

[{"title":"( 180 个子文件 1.91MB ) RazorTemplating:Razor模板引擎在.NET Core 3+中的控制台,Web,服务,桌面工作负载中将Razor视图(.cshtml文件)呈现为String","children":[{"title":"RazorViewToStringRendererFactory.cs <span style='color:#111;'> 7.22KB </span>","children":null,"spread":false},{"title":"RazorViewToStringRendererTest.cs <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"RazorViewToStringRenderer.cs <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"RazorTemplateEngine.cs <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"Startup.cs <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"HomeController.cs <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"Startup.cs <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"HomeController.cs <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"Startup.cs <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"Worker.cs <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"Worker.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Startup.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Invoice.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"MvcCoreBuilderExtentions.cs <span style='color:#111;'> 837B </span>","children":null,"spread":false},{"title":"RazorToStringController.cs <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"RazorToStringController.cs <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 695B </span>","children":null,"spread":false},{"title":"HostingEnvironment.cs <span style='color:#111;'> 668B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 645B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 523B </span>","children":null,"spread":false},{"title":"ExampleConfigurationService.cs <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"ServiceCollectionExtensions.cs <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"App.xaml.cs <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"WeatherForecast.cs <span style='color:#111;'> 297B </span>","children":null,"spread":false},{"title":"Constants.cs <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"ExampleService.cs <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"ErrorViewModel.cs <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"ErrorViewModel.cs <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"ExampleModel.cs <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"Invoice.cshtml <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"_Layout.cshtml <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"_Layout.cshtml <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"Error.cshtml <span style='color:#111;'> 859B </span>","children":null,"spread":false},{"title":"Error.cshtml <span style='color:#111;'> 859B </span>","children":null,"spread":false},{"title":"Index.cshtml <span style='color:#111;'> 593B </span>","children":null,"spread":false},{"title":"Index.cshtml <span style='color:#111;'> 593B </span>","children":null,"spread":false},{"title":"ExampleViewWithTagHelpers.cshtml <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"Inject.cshtml <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"Inject.cshtml <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"ExampleView.cshtml <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"_Layout1.cshtml <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"ExampleViewServiceInjection.cshtml <span style='color:#111;'> 193B </span>","children":null,"spread":false},{"title":"_ValidationScriptsPartial.cshtml <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"_ValidationScriptsPartial.cshtml <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"_ViewImports.cshtml <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"Privacy.cshtml <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"ExamplePartialView.cshtml <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"Privacy.cshtml <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"ExampleViewUsingViewImports.cshtml <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"_ViewImports.cshtml <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"ExampleViewWithLayout.cshtml <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"_ViewImports.cshtml <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"_ViewStart.cshtml <span style='color:#111;'> 33B </span>","children":null,"spread":false},{"title":"_ViewStart.cshtml <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"_ViewStart.cshtml <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"Razor.Templating.Core.csproj <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"ExampleWebApiApp.Net5_0.csproj <span style='color:#111;'> 709B </span>","children":null,"spread":false},{"title":"Razor.Templating.Core.Test.csproj <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"ExampleWebApp.Net5_0.csproj <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"ExampleWebApp.NetCore3_1.csproj <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"ExampleWorkerService.NetCore3_1.csproj <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"ExampleWorkerService.Net5_0.csproj <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"Example.Windows.Desktop.WPF.csproj <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"ExampleConsoleApp.Net5_0.csproj <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"ExampleConsoleApp.NetCore3_0.csproj <span style='color:#111;'> 414B </span>","children":null,"spread":false},{"title":"ExampleConsoleApp.NetCore3_1.csproj <span style='color:#111;'> 414B </span>","children":null,"spread":false},{"title":"Razor.Templating.Example.Invoice.csproj <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"ExampleWebApiApp.NetCore3_1.csproj <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"ExampleRazorTemplatesLibrary.csproj <span style='color:#111;'> 308B </span>","children":null,"spread":false},{"title":"Razor.Templates.csproj <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"bootstrap.css <span style='color:#111;'> 187.84KB </span>","children":null,"spread":false},{"title":"bootstrap.css <span style='color:#111;'> 187.84KB </span>","children":null,"spread":false},{"title":"bootstrap.min.css <span style='color:#111;'> 152.11KB </span>","children":null,"spread":false},{"title":"bootstrap.min.css <span style='color:#111;'> 152.11KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.css <span style='color:#111;'> 63.04KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.css <span style='color:#111;'> 63.04KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.min.css <span style='color:#111;'> 47.35KB </span>","children":null,"spread":false},{"title":"bootstrap-grid.min.css <span style='color:#111;'> 47.35KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.css <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.css <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.min.css <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"bootstrap-reboot.min.css <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"site.css <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"site.css <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 5.61KB </span>","children":null,"spread":false},{"title":"favicon.ico <span style='color:#111;'> 31.29KB </span>","children":null,"spread":false},{"title":"favicon.ico <span style='color:#111;'> 5.30KB </span>","children":null,"spread":false},{"title":"jquery.js <span style='color:#111;'> 280.89KB </span>","children":null,"spread":false},{"title":"jquery.js <span style='color:#111;'> 265.38KB </span>","children":null,"spread":false},{"title":"bootstrap.bundle.js <span style='color:#111;'> 217.69KB </span>","children":null,"spread":false},{"title":"bootstrap.bundle.js <span style='color:#111;'> 217.69KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明