template

package
v2.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build[Data any](t *Template, name string, data *Data) (string, error)

Build builds a template.

Types

type Template

type Template struct {
	// contains filtered or unexported fields
}

Template is a template engine.

func New

func New(fs fs.FS, globals native.Declarations) *Template

New returns a new template engine.

Jump to

Keyboard shortcuts

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