templates

package
v0.0.0-...-8791852 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunction

func AddFunction(key string, fun any)

func FuncMap

func FuncMap() html.FuncMap

func Restart

func Restart() html.HTML

Types

type TemplateService

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

func NewTemplateService

func NewTemplateService() *TemplateService

func (*TemplateService) GetTemplate

func (ts *TemplateService) GetTemplate() *html.Template

func (*TemplateService) Load

func (ts *TemplateService) Load(tmplName string, index int) bool

func (*TemplateService) ParseLayout

func (ts *TemplateService) ParseLayout(layoutTemplate string)

func (*TemplateService) Ready

func (ts *TemplateService) Ready()

func (*TemplateService) Retrieve

func (ts *TemplateService) Retrieve(data any, index int) html.HTML

Jump to

Keyboard shortcuts

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