template

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine handles the templating system.

func NewEngine

func NewEngine(router *mux.Router) *Engine

NewEngine returns a new template engine.

func (*Engine) ParseTemplates

func (e *Engine) ParseTemplates() error

ParseTemplates parses template files embed into the application.

func (*Engine) Render

func (e *Engine) Render(name string, data map[string]interface{}) []byte

Render process a template.

Jump to

Keyboard shortcuts

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