Table of Contents

Interface IInlineTemplateRenderer

Namespace
MailForge.Templates
Assembly
MailForge.dll

Renders inline templates that use the simple {{Property.Path}} placeholder syntax. This is used for Html(), Text(), and subject templates on typed emails. Unresolved placeholders are left untouched in the output.

public interface IInlineTemplateRenderer

Methods

Render(string, object?)

Renders a template by substituting model property placeholders.

string Render(string template, object? model)

Parameters

template string

The template text.

model object

The model instance.

Returns

string

The rendered output.