Tempo.Blazor.EmailTemplates.Abstractions 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.Abstractions --version 2.11.0
                    
NuGet\Install-Package Tempo.Blazor.EmailTemplates.Abstractions -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.Abstractions" 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.Abstractions" Version="2.11.0" />
                    
Directory.Packages.props
<PackageReference Include="Tempo.Blazor.EmailTemplates.Abstractions" />
                    
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.Abstractions --version 2.11.0
                    
#r "nuget: Tempo.Blazor.EmailTemplates.Abstractions, 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.Abstractions@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.Abstractions&version=2.11.0
                    
Install as a Cake Addin
#tool nuget:?package=Tempo.Blazor.EmailTemplates.Abstractions&version=2.11.0
                    
Install as a Cake Tool

Tempo.Blazor.EmailTemplates.Abstractions

The contracts and the model behind the Tempo.Blazor email template editor. This package has no Blazor dependency and no template engine: it is safe to reference from an API, a background worker or a shared DTO project, and it is what a Blazor WebAssembly editor compiles against without downloading Scriban, Mjml.Net or AngleSharp.

What's inside

  • Block model — strongly typed document model covering the full MJML 4 component set (EmailTemplateDocument, EmailSection, EmailBlock and its concrete types), including SchemaVersion (currently 1) and the classes/attributes model.
  • MJML generation and import — model → MJML markup and a bidirectional, lossless MJML → model parser, plus the MJML attribute-parity table.
  • Rendering contracts — IEmailPreviewRenderer (the one seam through which the editor gets a preview and an HTML export), IEmailTemplateRenderer, IMjmlCompiler, IHtmlContentSanitizer, ITemplateValidator, ITemplateEngine, ITemplateVariableExtractor.
  • Security policy — TemplateSecurityOptions (limits), TemplateEscapeMode, HtmlSanitizerPolicy, EmailUrlPolicy (the URL scheme allow-list), CssSafety, MarkupGuard and the audit contract ITemplateSecurityAuditSink / TemplateSecurityEvent.
  • Host contracts — IEmailTemplateStore, IEmailSender, EmailMessage and the save contract (EmailSaveRequest, EmailSaveResult, EmailSaveStatus, EmailSaveTrigger).
  • Localization — the JSON string tables and JsonStringLocalizer<T>, so a host can replace the wording without touching the pipeline.
  • Import limits — EmailImportOptions (5 MB, 200 sections, 2000 blocks, depth 8) enforced by the importer, the JSON reader and the server-side mapper.

What it deliberately does not contain: Scriban, Mjml.Net and AngleSharp. Those live in Tempo.Blazor.EmailTemplates.Engine, which the editor package does not reference.

Installation

dotnet add package Tempo.Blazor.EmailTemplates.Abstractions

Adding the editor package (Tempo.Blazor.EmailTemplates) brings this one transitively.

Registration

// model half only (validators, generators, variable extraction); no UI, no engine
services.AddTempoEmailTemplateModel();

// an API/worker that actually renders
services.AddTempoEmailTemplateEngine();   // lives in Tempo.Blazor.EmailTemplates.Engine

Documentation

  • Hosting guide — docs/email-templates/HOSTING.md: packages, registration, the preview seam, the save contract, the dirty guard, the audit sink, limits.
  • Template syntax — docs/email-templates/TEMPLATE_SYNTAX.md: Scriban variables, filters, the default HTML escaping, the html.trusted opt-out, URL schemes, culture, the sandbox limits.
  • Migration 2.9 → 2.10 — docs/email-templates/MIGRATION-2.9-to-2.10.md: every breaking change with a before/after.
  • MJML attribute parity — docs/email-templates/MJML_ATTRIBUTE_PARITY.md: which MJML 4 attribute maps to which model property.
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 (2)

Showing the top 2 NuGet packages that depend on Tempo.Blazor.EmailTemplates.Abstractions:

Package Downloads
Tempo.Blazor.EmailTemplates

Drag-and-drop email template editor component (TmEmailTemplateEditor) for Tempo.Blazor. Visual MJML editor with full MJML 4 parity, bidirectional MJML import/export, Scriban variable templating and live preview. Built entirely on Tempo.Blazor components.

Tempo.Blazor.EmailTemplates.Engine

Local render engine for the Tempo.Blazor email template editor: the sandboxed Scriban template engine (member policy, escaping, audit, limits), the Mjml.Net compiler, the AngleSharp HTML sanitizer, the render pipeline and the local preview renderer. Reference this package on the server (or anywhere a local render is acceptable); the editor itself (Tempo.Blazor.EmailTemplates) runs without it, e.g. in Blazor WebAssembly with a server-side IEmailPreviewRenderer.

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 339 11/28/2026
2.13.0 368 11/24/2026
2.12.0 184 11/20/2026
2.11.1 124 11/15/2026
2.11.0 119 11/14/2026
2.9.0 291 9/27/2026
2.8.26 168 9/13/2026
2.8.25 137 9/12/2026
2.8.24 138 8/26/2026
2.8.23 133 8/26/2026
2.8.22 134 8/26/2026
2.8.21 143 8/23/2026
2.8.20 148 8/22/2026
2.8.19 144 8/19/2026
2.8.18 156 8/18/2026
2.8.16 147 8/12/2026
2.8.14 141 8/9/2026
2.8.13 143 8/9/2026
2.8.12 136 8/8/2026
Loading failed