template

package
v0.0.0-...-b9a8969 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package template handles template parsing and execution.

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(cfg *config.Config, router *mux.Router, translator *locale.Translator) *Engine

NewEngine returns a new template Engine.

func (*Engine) Execute

func (e *Engine) Execute(w io.Writer, name string, data interface{})

Execute process a template.

func (*Engine) SetLanguage

func (e *Engine) SetLanguage(language string)

SetLanguage change the language for template processing.

Jump to

Keyboard shortcuts

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