renderer

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Renderer

func Renderer(cfg options.TemplateOpt) *renderer

Types

type Attachment

type Attachment struct {
	Source io.Reader
	Mime   string
	Name   string
}

type AttachmentIndex

type AttachmentIndex map[string]*Attachment

type DriverDefinition

type DriverDefinition struct {
	Name        string               `json:"name"`
	InputTypes  []types.DocumentType `json:"inputTypes"`
	OutputTypes []types.DocumentType `json:"outputTypes"`
}

type RendererPayload

type RendererPayload struct {
	Template     io.Reader
	TemplateType types.DocumentType
	TargetType   types.DocumentType
	Variables    map[string]interface{}
	Options      map[string]string
	Partials     []*TemplatePartial
	Attachments  AttachmentIndex
}

type TemplatePartial

type TemplatePartial struct {
	Handle       string
	Template     io.Reader
	TemplateType types.DocumentType
}

Jump to

Keyboard shortcuts

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