renderer

package
v0.0.0-...-b28c917 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() template.FuncMap

FuncMap provides convenience functions that can used in template.Templated based renderers or renderers that otherwise implement template.FuncMap.

Types

type Renderer

type Renderer interface {
	ExecuteTemplate(w io.Writer, name string, data any) error
}

Renderer is an interface to render/execute templates and fragments. It's only method is ExecuteTemplate for out-of-the-box compatibility with stdlib `text/template` and `html/template` packages.

Jump to

Keyboard shortcuts

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