templateengines

package
v0.0.0-...-04ab0c9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DjangoTemplateEngineKey = "django"
View Source
const GoTemplateEngineKey = "golang"
View Source
const HandlebarsTemplateEngineKey = "handlebars"

Variables

This section is empty.

Functions

func LogParsedTemplateEngine

func LogParsedTemplateEngine(keyToParse string, templateEngineInstance TemplateEngine, found bool)

Types

type DjangoTemplateEngine

type DjangoTemplateEngine struct {
}

func (*DjangoTemplateEngine) Execute

func (te *DjangoTemplateEngine) Execute(templateHtml *string, model any) (*string, error)

func (*DjangoTemplateEngine) Test

func (te *DjangoTemplateEngine) Test(templateHtml *string, model any) error

type GoTemplateEngine

type GoTemplateEngine struct {
}

func (*GoTemplateEngine) Execute

func (gte *GoTemplateEngine) Execute(templateHtml *string, model any) (*string, error)

func (*GoTemplateEngine) Test

func (gte *GoTemplateEngine) Test(templateHtml *string, model any) error

type HandlebarsTemplateEngine

type HandlebarsTemplateEngine struct {
}

func (*HandlebarsTemplateEngine) Execute

func (te *HandlebarsTemplateEngine) Execute(templateHtml *string, model any) (*string, error)

func (*HandlebarsTemplateEngine) Test

func (te *HandlebarsTemplateEngine) Test(templateHtml *string, model any) error

type TemplateEngine

type TemplateEngine interface {
	Execute(templateHtml *string, model any) (*string, error)
	Test(templateHtml *string, model any) error
}

func GetTemplateEngineByKey

func GetTemplateEngineByKey(key string) (TemplateEngine, bool)

Jump to

Keyboard shortcuts

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