amber

package
v3.0.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: Apache-2.0 Imports: 7 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 {
	Config *config.Template
	// contains filtered or unexported fields
}

Engine the amber template engine

func New

func New(cfg config.Template) *Engine

New creates and returns a new amber engine

func (*Engine) BuildTemplates

func (e *Engine) BuildTemplates() error

BuildTemplates builds the amber templates

func (*Engine) ExecuteWriter

func (e *Engine) ExecuteWriter(out io.Writer, name string, binding interface{}, layout string) error

ExecuteWriter executes a templates and write its results to the out writer

Jump to

Keyboard shortcuts

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