Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Renderer ¶
func Renderer(cfg options.TemplateOpt) *renderer
Types ¶
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 }
Click to show internal directories.
Click to hide internal directories.