Tempo.Blazor.EmailTemplates.Engine 2.11.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tempo.Blazor.EmailTemplates.Engine --version 2.11.0
                    
NuGet\Install-Package Tempo.Blazor.EmailTemplates.Engine -Version 2.11.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="Tempo.Blazor.EmailTemplates.Engine" Version="2.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tempo.Blazor.EmailTemplates.Engine" Version="2.11.0" />
                    
Directory.Packages.props
<PackageReference Include="Tempo.Blazor.EmailTemplates.Engine" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tempo.Blazor.EmailTemplates.Engine --version 2.11.0
                    
#r "nuget: Tempo.Blazor.EmailTemplates.Engine, 2.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tempo.Blazor.EmailTemplates.Engine@2.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tempo.Blazor.EmailTemplates.Engine&version=2.11.0
                    
Install as a Cake Addin
#tool nuget:?package=Tempo.Blazor.EmailTemplates.Engine&version=2.11.0
                    
Install as a Cake Tool

Tempo.Blazor.EmailTemplates.Engine

The local render engine of the Tempo.Blazor email template editor — the sandboxed Scriban template engine (member policy, per-pass HTML escaping, audit trail, limits), the Mjml.Net compiler, the AngleSharp HTML sanitizer, the render pipeline and the local preview renderer.

The editor package (Tempo.Blazor.EmailTemplates) does not reference this one: it talks to ITemplateValidator, IHtmlContentSanitizer, ITemplateVariableExtractor and IEmailPreviewRenderer, so a Blazor WebAssembly editor runs without Scriban/Mjml.Net/AngleSharp and previews through a server-side IEmailPreviewRenderer. Add this package when the process that renders the preview (or exports the HTML) is the one that ships the engine.

// server, or a WASM app that genuinely renders locally
builder.Services
    .AddTempoEmailTemplateEditor()   // UI + model, no engine
    .AddTempoEmailTemplateEngine();  // this package: Scriban + Mjml.Net + AngleSharp

AddTempoEmailTemplateEngine() also registers ITemplateValidator (the syntax check in TmEmailValidationPanel), IHtmlContentSanitizer (the authoritative AngleSharp implementation replaces the BCL ConservativeHtmlContentSanitizer) and IEmailPreviewRenderer (LocalEmailPreviewRenderer). The registration is order-independent with AddTempoEmailTemplateModel() and idempotent.

InternalsVisibleTo binds this package to an exact Tempo.Blazor.EmailTemplates.Abstractions version ([2.10.0]), because it reaches internals (TemplateEscapeMode, IEscapingTemplateEngine, HtmlTextEscaper, HtmlTagTokenizer, TemplateContentMasker). Do not loosen that range: a drifted Abstractions silently degrades the pipeline to the custom-engine fallback that skips per-pass escaping.

What it registers

Service Implementation Used by
ITemplateEngine ScribanTemplateEngine server-side render, custom pipelines
ITemplateValidator the Scriban syntax check TmEmailValidationPanel
IHtmlContentSanitizer AngleSharpHtmlContentSanitizer render pipeline, editor (replaces the BCL fallback)
IEmailTemplateRenderer EmailTemplateRenderer HTML + plain text from a document
IEmailPreviewRenderer LocalEmailPreviewRenderer TmEmailTemplatePreview and the HTML export
IMjmlCompiler MjmlNetCompiler MJML → HTML

It also forwards every registered ITemplateSecurityAuditSink and ITemplateFunctionProvider, and it validates TemplateSecurityOptions (loop/recursion/output/recursion/regex limits, render timeout) when the engine is constructed — a zero or negative limit throws instead of silently meaning "unlimited".

Documentation

  • docs/email-templates/HOSTING.md — the hosting guide (preview seam, save contract, layout, localization)
  • docs/email-templates/TEMPLATE_SYNTAX.md — the template language, the default HTML escaping, the html.trusted opt-out, the URL allow-list, culture and the sandbox limits
  • docs/email-templates/MIGRATION-2.9-to-2.10.md — how 2.9.x hosts move to the three-package split
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.16.0 0 12/4/2026
2.14.0 306 11/28/2026
2.13.0 344 11/24/2026
2.12.0 149 11/20/2026
2.11.1 97 11/15/2026
2.11.0 98 11/14/2026