template

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 1 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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