Documentation ¶ Index ¶ Constants func NewLetterTest(fs fs.FS, p string) func(*testing.T) func NewTemplateTest(tmpl Template) func(*testing.T) type Context type Options type Template func New(l mdsend.Letter, options Options) (_ Template, err error) Constants ¶ View Source const DefaultSeedTemplate = "{{ .Frontmatter.subject }}||{{ .Content }}" Variables ¶ This section is empty. Functions ¶ func NewLetterTest ¶ added in v0.0.6 func NewLetterTest( fs fs.FS, p string, ) func(*testing.T) func NewTemplateTest ¶ func NewTemplateTest(tmpl Template) func(*testing.T) Types ¶ type Context ¶ type Context struct { Frontmatter map[string]any Recipient map[string]any Content template.HTML Schedule mdsend.Schedule } type Options ¶ type Options struct { IdentifierGenerator mdsend.IdentifierGenerator ContentParser parser.Parser RendererForText renderer.Renderer RendererForHTML renderer.Renderer Frontmatter map[string]any } type Template ¶ type Template interface { RenderLetterForRecipient(map[string]any) (mdsend.Message, error) } func New ¶ func New( l mdsend.Letter, options Options, ) (_ Template, err error) New creates a Template. The result is not safe for asynchronous rendering. Source Files ¶ View all Source files content.gocontext.gofunctions.goheader.goreify.gorender.goseed.gotemplate.gotesting.go Click to show internal directories. Click to hide internal directories.