Skip to content

Template Registry #74

Description

@tsutomi

"A template that cannot be found at send time is a template that cannot be trusted."

The Problem Today

There is no centralised store for template definitions. Templates are referenced by name in messages, but there is no place to register, look up, validate, or manage them within the framework.

What We Are Building

An ITemplateRegistry that stores and retrieves IMessageTemplate instances by name and locale. A default in-memory registry is provided; the interface supports database-backed implementations. The registry validates that all templates referenced in a channel schema are registered and that their variable schemas are complete before the connector accepts messages.

Benefits

  • All templates are defined in one place and validated at startup
  • Locale-specific template variants are resolved automatically based on the recipient's locale
  • Missing or misconfigured templates are caught before any message is sent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions