Regira.Web.HTML.RazorEngineCore
6.6.2
dotnet add package Regira.Web.HTML.RazorEngineCore --version 6.6.2
NuGet\Install-Package Regira.Web.HTML.RazorEngineCore -Version 6.6.2
<PackageReference Include="Regira.Web.HTML.RazorEngineCore" Version="6.6.2" />
<PackageVersion Include="Regira.Web.HTML.RazorEngineCore" Version="6.6.2" />
<PackageReference Include="Regira.Web.HTML.RazorEngineCore" />
paket add Regira.Web.HTML.RazorEngineCore --version 6.6.2
#r "nuget: Regira.Web.HTML.RazorEngineCore, 6.6.2"
#:package Regira.Web.HTML.RazorEngineCore@6.6.2
#addin nuget:?package=Regira.Web.HTML.RazorEngineCore&version=6.6.2
#tool nuget:?package=Regira.Web.HTML.RazorEngineCore&version=6.6.2
Regira.Web.HTML.RazorEngineCore
Razor template engine for Regira Web, built on RazorEngineCore. RazorTemplateParser implements IHtmlParser and renders a Razor template string with a model to HTML. The engine has no layout support: @model directives and Layout = null blocks are stripped before compiling, so it suits simple templates without layout inheritance. Compiled templates are cached by their text, so each distinct template compiles once per process. Model values are written as they are unless RazorTemplateParser.Options.HtmlEncode is set, which HTML-encodes every value a template writes with @, as RazorLight does; @Raw(value) then writes a value unencoded.
Installation
<PackageReference Include="Regira.Web.HTML.RazorEngineCore" Version="6.*" />
A template compiles to C# and runs in your process with no sandbox: let only trusted administrators edit one.
Documentation
- HTML Template Parsing — the shared
IHtmlParsercontract, how the three template engines differ and template caching - Examples — a Razor invoice template rendered through
IHtmlParser, and HTML-to-PDF
License
Apache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- RazorEngineCore (>= 2026.1.1)
- Regira.Web (>= 6.6.2)
-
net8.0
- RazorEngineCore (>= 2026.1.1)
- Regira.Web (>= 6.6.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.