Tempo.Blazor.EmailTemplates.Abstractions
2.13.0
See the version list below for details.
dotnet add package Tempo.Blazor.EmailTemplates.Abstractions --version 2.13.0
NuGet\Install-Package Tempo.Blazor.EmailTemplates.Abstractions -Version 2.13.0
<PackageReference Include="Tempo.Blazor.EmailTemplates.Abstractions" Version="2.13.0" />
<PackageVersion Include="Tempo.Blazor.EmailTemplates.Abstractions" Version="2.13.0" />
<PackageReference Include="Tempo.Blazor.EmailTemplates.Abstractions" />
paket add Tempo.Blazor.EmailTemplates.Abstractions --version 2.13.0
#r "nuget: Tempo.Blazor.EmailTemplates.Abstractions, 2.13.0"
#:package Tempo.Blazor.EmailTemplates.Abstractions@2.13.0
#addin nuget:?package=Tempo.Blazor.EmailTemplates.Abstractions&version=2.13.0
#tool nuget:?package=Tempo.Blazor.EmailTemplates.Abstractions&version=2.13.0
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,EmailBlockand its concrete types), includingSchemaVersion(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,MarkupGuardand the audit contractITemplateSecurityAuditSink/TemplateSecurityEvent. - Host contracts —
IEmailTemplateStore,IEmailSender,EmailMessageand 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, thehtml.trustedopt-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 | Versions 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. |
-
net10.0
- FluentValidation (>= 12.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Localization.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
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 |