Razor.Templating.Core
1.0.0
Kindly update the package to v1.5.0 as some critical bugs were fixed in this version.
See the version list below for details.
dotnet add package Razor.Templating.Core --version 1.0.0
NuGet\Install-Package Razor.Templating.Core -Version 1.0.0
<PackageReference Include="Razor.Templating.Core" Version="1.0.0" />
paket add Razor.Templating.Core --version 1.0.0
#r "nuget: Razor.Templating.Core, 1.0.0"
// Install Razor.Templating.Core as a Cake Addin #addin nuget:?package=Razor.Templating.Core&version=1.0.0 // Install Razor.Templating.Core as a Cake Tool #tool nuget:?package=Razor.Templating.Core&version=1.0.0
Razor Templating
Using RazorEngine for HTML templating has never been so easy like this. This can be used is any type of dotnet core application #Example:
var model = new ExampleModel()
{
PlainText = "Some text",
HtmlContent = "<em>Some emphasized text</em>"
};
var viewData = new Dictionary<string, object>();
viewData["Value1"] = "1";
viewData["Value2"] = "2";
var html = await RazorTemplateEngine.RenderAsync("/Views/ExampleView.cshtml", model, viewData);
References:
- https://github.com/Andy9FromSpace/razor-renderer-core
- https://github.com/aspnet/Entropy/tree/master/samples/Mvc.RenderViewToString
- https://www.frakkingsweet.com/razor-template-rendering/
- https://github.com/veccsolutions/RenderRazorConsole
- https://emilol.com/razor-mailer/
- https://codeopinion.com/using-razor-in-a-console-application/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.AspNetCore.Hosting (>= 2.2.7)
- Microsoft.AspNetCore.Mvc.Razor (>= 2.2.0)
NuGet packages (20)
Showing the top 5 NuGet packages that depend on Razor.Templating.Core:
Package | Downloads |
---|---|
Sitko.Core.App.Web
Sitko.Core is a set of libraries to help build .NET Core applications fast |
|
FenixAlliance.ACL.Dependencies
Application Component for the Alliance Business Suite. |
|
Bnsights.Core
Package Description |
|
Digizuite.Optimizely
The official integration between Digizuite DAM and Optimizely CMS. |
|
VjnFramework
Core Framework vjn |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Razor.Templating.Core:
Repository | Stars |
---|---|
LANCommander/LANCommander
|
|
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
|
Version | Downloads | Last updated | |
---|---|---|---|
2.1.0 | 160,865 | 10/14/2024 | |
2.1.0-rc.1 | 1,011 | 9/12/2024 | |
2.0.0 | 355,680 | 4/18/2024 | |
2.0.0-rc.1 | 2,943 | 3/4/2024 | |
1.9.0 | 674,477 | 8/25/2023 | |
1.9.0-rc.2 | 99,789 | 2/25/2023 | |
1.9.0-rc.1 | 211,776 | 11/13/2022 | |
1.8.0 | 1,100,498 | 11/5/2022 | |
1.8.0-rc.1 | 6,905 | 9/17/2022 | |
1.7.1 | 529,764 | 7/2/2022 | |
1.7.1-rc.1 | 14,199 | 2/20/2022 | |
1.7.0 | 766,429 | 11/13/2021 | |
1.7.0-preview.1 | 2,210 | 9/26/2021 | |
1.6.1-rc.1 | 6,037 | 1/13/2022 | |
1.6.0 | 454,726 | 9/26/2021 | |
1.6.0-rc.2 | 7,660 | 5/14/2021 | |
1.6.0-rc.1 | 827 | 5/13/2021 | |
1.5.0 | 425,739 | 2/27/2021 | |
1.4.0 | 108,092 | 12/5/2020 | |
1.4.0-rc.1 | 659 | 11/19/2020 | |
1.3.0 | 8,777 | 11/17/2020 | |
1.2.1 | 37,385 | 9/21/2020 | |
1.2.0 | 3,827 | 7/11/2020 | |
1.1.2 | 3,039 | 4/13/2020 | |
1.1.0 | 942 | 4/13/2020 | |
1.0.1 | 996 | 4/3/2020 | |
1.0.0 | 1,312 | 4/3/2020 |