xtpls

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XHT   tpl.Templates // global html templates
	Funcs tpl.FuncMap   // custom template functions
	Dir   string        // current local templates directory
	FSs   []fs.FS       // internal embedded templates file systems
)

Functions

func Functions

func Functions() tpl.FuncMap

Functions default utility functions for template

func HTMLRenderer

func HTMLRenderer(locale, name string, data any) render.Render

func InitTemplates

func InitTemplates() error

func NewHTMLTemplates added in v1.2.10

func NewHTMLTemplates() tpl.Templates

func ReloadTemplates

func ReloadTemplates() error

func ReloadTemplatesOnChange

func ReloadTemplatesOnChange(path string, op string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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