Documentation
¶
Overview ¶
Package template defines renderer-agnostic template interfaces and adapters. It mirrors the configurability described in go-form-gen.md:443-460 while following the interface-first guidance from ARCH_DESIGN.md:1-8.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateRenderer ¶
type TemplateRenderer interface {
Render(name string, data any, out ...io.Writer) (string, error)
RenderTemplate(name string, data any, out ...io.Writer) (string, error)
RenderString(templateContent string, data any, out ...io.Writer) (string, error)
RegisterFilter(name string, fn func(input any, param any) (any, error)) error
GlobalContext(data any) error
}
TemplateRenderer mirrors the github.com/goliatone/go-template engine contract, providing the seam renderers rely on. See go-form-gen.md:443-460 for the surrounding design context.
Click to show internal directories.
Click to hide internal directories.