renderer

package
v0.0.0-...-c2ac5d2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTemplateNotFound = errors.New("template not found")

Functions

This section is empty.

Types

type Renderer

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

func New

func New(templatesFS fs.FS, templateMap TemplateMap) (*Renderer, error)

func (*Renderer) Execute

func (r *Renderer) Execute(name string, w io.Writer, data any) error

type TemplateMap

type TemplateMap map[string][]string

type TemplateNotFoundError

type TemplateNotFoundError struct {
	Name string
}

func (*TemplateNotFoundError) Error

func (e *TemplateNotFoundError) Error() string

type TemplateSelfDependencyError

type TemplateSelfDependencyError struct {
	Name string
}

func (*TemplateSelfDependencyError) Error

Jump to

Keyboard shortcuts

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