xtemplate

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToHtml

func StringToHtml(data string) httpTemplate.HTML

Types

type FuncMap

type FuncMap template.FuncMap

type Template

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

func Must

func Must(t *Template, err error) *Template

func New

func New(name string) *Template

func ParseFiles

func ParseFiles(filenames ...string) (*Template, error)

func (*Template) Clone

func (t *Template) Clone() (*Template, error)

func (*Template) Execute

func (t *Template) Execute(wr io.Writer, data any) error

func (*Template) Funcs

func (t *Template) Funcs(funcMap FuncMap) *Template

func (*Template) New

func (t *Template) New(name string) *Template

func (*Template) Option

func (t *Template) Option(opt ...string) *Template

func (*Template) Parse

func (t *Template) Parse(text string) (*Template, error)

func (*Template) ParseFS

func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error)

func (*Template) ParseFiles

func (t *Template) ParseFiles(filenames ...string) (*Template, error)

Jump to

Keyboard shortcuts

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