renderutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContextFuncMap

func BuildContextFuncMap(ctx context.Context, funcs map[string]func(context.Context) any) template.FuncMap

BuildContextFuncMap builds render-time template functions.

func BuildPlaceholderFuncMap

func BuildPlaceholderFuncMap(funcs map[string]func(context.Context) any) template.FuncMap

BuildPlaceholderFuncMap builds parse-time placeholders for request-scoped template functions.

func CloneContextFuncs

func CloneContextFuncs(funcs map[string]func(context.Context) any) map[string]func(context.Context) any

CloneContextFuncs clones a request-scoped template function map.

func CloneFuncs

func CloneFuncs(funcs map[string]any) map[string]any

CloneFuncs clones a static template function map.

func NormalizeName

func NormalizeName(name string) string

NormalizeName normalizes a template name used for lookup.

func SameModTime

func SameModTime(a time.Time, b time.Time) bool

SameModTime compares source file modification times with filesystem-second tolerance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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