Razor.Templating.Core 1.0.0

.NET Standard 2.1
Suggested Alternatives

Razor.Templating.Core 1.5.0

Additional Details

Kindly update the package to v1.5.0 as some critical bugs were fixed in this version.

There is a newer version of this package available.
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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Razor.Templating.Core" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Razor.Templating.Core --version 1.0.0
#r "nuget: Razor.Templating.Core, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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:
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (10)

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.

FinancialModuleAuxiliary

Package Description

Digizuite.Optimizely

The official integration between Digizuite DAM and Optimizely CMS.

Unlog.AspNetCore

the aspnetcore package for UnLog

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.9.0-rc.1 3,752 11/13/2022
1.8.0 46,214 11/5/2022
1.8.0-rc.1 3,848 9/17/2022
1.7.1 227,054 7/2/2022
1.7.1-rc.1 7,324 2/20/2022
1.7.0 438,626 11/13/2021
1.7.0-preview.1 2,124 9/26/2021
1.6.1-rc.1 2,170 1/13/2022
1.6.0 252,792 9/26/2021
1.6.0-rc.2 5,419 5/14/2021
1.6.0-rc.1 424 5/13/2021
1.5.0 248,906 2/27/2021
1.4.0 63,789 12/5/2020
1.4.0-rc.1 576 11/19/2020
1.3.0 7,958 11/17/2020
1.2.1 24,541 9/21/2020
1.2.0 3,357 7/11/2020
1.1.2 1,448 4/13/2020
1.1.0 460 4/13/2020
1.0.1 701 4/3/2020
1.0.0 644 4/3/2020