A registry of named body templates with {{ variable }} interpolation.
TemplateEngine(templates?: Readonly<Record<string, MailTemplate>>)
Parameters
optional
templates: Readonly<Record<string, MailTemplate>>
Named templates (from MailPluginOptions.templates)
has(name: string): boolean
Reports whether a template is registered.
render(name: string,data: Readonly<Record<string, unknown>>): RenderedTemplate
Renders a template's bodies with data.