Namespace MailForge.Templates
Classes
- InlineTemplateRenderer
Renders
{{Property.Path}}placeholders by walking the property graph of the model. Array and IList indices are supported (for example,{{Items[0].Name}}).
- RazorEmailTemplateRenderer
Renders Razor templates using the RazorEngineCore engine. Compiled templates are cached by template content so each unique template is compiled only once. Model types must be publicly visible (public top-level or public nested types); private or internal types cannot be bound by the runtime dynamic dispatcher.
- TemplateRegistry
Default in-memory ITemplateRegistry implementation.
Interfaces
- IEmailTemplateRenderer
Renders Razor templates registered on the MailForge builder. Templates use Razor syntax and can reference the model through
@Model.
- IInlineTemplateRenderer
Renders inline templates that use the simple
{{Property.Path}}placeholder syntax. This is used forHtml(),Text(), and subject templates on typed emails. Unresolved placeholders are left untouched in the output.
- ITemplateRegistry
A registry of named Razor email templates.