Service Layer low complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Renders accessible HTML email templates with semantic markup, sufficient contrast, and plain-text fallback for every notification type. Injects deep-links back to the app and ensures compliance with WCAG 2.2 AA contrast and semantic HTML requirements before handoff to the gateway.

Feature: Email/SMS Notifications

email-template-engine

Sources & reasoning

Email content must meet WCAG 2.2 AA accessibility standards (contrast, semantic HTML, plain-text fallback) per source doc requirements. A dedicated template engine isolates rendering logic, ensuring all outbound emails are accessible and consistently formatted across notification types.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Render notification-type-specific HTML email bodies with semantic structure
  • Generate plain-text fallback versions of every email
  • Inject app deep-links into email content
  • Apply WCAG 2.2 AA contrast and typography constraints to email output

Interfaces

render(templateId, context): EmailMessage
renderPlainText(templateId, context): string
listTemplates(): TemplateId[]