templates

package
v0.10.14 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies added in v0.8.0

type Dependencies struct {
	Funcs         template.FuncMap
	Cache         bool
	CacheProvider cbweb.CacheProvider
}

type InheritanceMultiTemplate

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

func NewInheritanceMultiTemplate

func NewInheritanceMultiTemplate(dependencies Dependencies) *InheritanceMultiTemplate

func (*InheritanceMultiTemplate) AddTemplate

func (m *InheritanceMultiTemplate) AddTemplate(name string, content []byte) error

func (*InheritanceMultiTemplate) ExecuteTemplate

func (m *InheritanceMultiTemplate) ExecuteTemplate(wr io.Writer, name string, data interface{}) error

Jump to

Keyboard shortcuts

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