gohtml

package
v0.0.0-...-f3ad2b4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2015 License: MIT Imports: 5 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
}

func New

func New() *Engine

func (*Engine) Build

func (e *Engine) Build(name, tpl string) (interface{}, Error)

func (*Engine) BuildAndRender

func (e *Engine) BuildAndRender(name string, tpl string, data interface{}) ([]byte, Error)

func (*Engine) BuildFile

func (e *Engine) BuildFile(name string, paths ...string) (interface{}, Error)

func (*Engine) BuildFileAndRender

func (e *Engine) BuildFileAndRender(name string, data interface{}, paths ...string) ([]byte, Error)

func (*Engine) Clear

func (e *Engine) Clear()

Clean up all templates.

func (*Engine) GetTemplate

func (e *Engine) GetTemplate(name string) interface{}

func (*Engine) Render

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

Jump to

Keyboard shortcuts

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