Documentation
¶
Overview ¶
Package echorenderer provides an implementation of echo.Renderer using html/template.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoInclude = errors.New("echorenderer: must have at least one include pattern") ErrNoFS = errors.New("echorenderer: must have filesystem") )
Functions ¶
This section is empty.
Types ¶
type FuncMapper ¶
Creates a template.FuncMap using an echo.Context.
type Options ¶
type Options struct {
// An [fs.FS] that contains the templates.
FS fs.FS
// The glob patterns used in [template.Parse].
Include []string
// An optional [FuncMapper].
Funcs FuncMapper
}
Provides configuration for Renderer.
type Renderer ¶
Provides echo.Renderer implementation through template.Template.
Click to show internal directories.
Click to hide internal directories.