templater

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrorTemplate

func GetErrorTemplate(ec echo.Context, errorText string) string

GetErrorTemplate returns formatted error template. If error.html wasn't found - it will return "error.html not found" message as simple string.

func GetRawTemplate

func GetRawTemplate(ectx echo.Context, templateName string, data map[string]string) string

GetRawTemplate returns only raw template data.

func GetTemplate

func GetTemplate(ectx echo.Context, name string, data map[string]string) string

GetTemplate returns formatted template that can be outputted to client.

func Initialize

func Initialize(cc *context.Context)

Initialize initializes package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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