renderers

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InlineImages

func InlineImages(b []byte) ([]string, []byte)

InlineImages returns a list of detected inline image paths and replaces the src paths with "cid:filename" tag.

Types

type GoTemplateMIMERenderer

type GoTemplateMIMERenderer struct {
	// contains filtered or unexported fields
}

GoTemplateMIMERenderer renders map to MIME buffer.

func (*GoTemplateMIMERenderer) Render

Render returns MIME encoded buffer.

type MimeLineWrapper

type MimeLineWrapper struct {
	// contains filtered or unexported fields
}

MimeLineWrapper writes everything to io.Writer chunked by maxMimeLineLen.

func (*MimeLineWrapper) Write

func (w *MimeLineWrapper) Write(p []byte) (int, error)

type Renderer

type Renderer interface {
	Render(w io.Writer, message *loaders.Message, to string) error
}

Renderer generates HTML and alternative email bodies to be used by Provider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL