templates

package
v0.1.236 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndParseTemplates

func FindAndParseTemplates(rootDir string, funcMap template.FuncMap) (*template.Template, error)

func Render

func Render(c echo.Context, code int, name string, data map[string]interface{}) error

Types

type TemplateRenderer

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

func GetTemplateRender

func GetTemplateRender(rootDir string) *TemplateRenderer

func (*TemplateRenderer) Render

func (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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