pongo

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: 9 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 pongo2 engine

func New

func New(c config.Template) *Engine

New creates and returns a Pongo template engine

func (*Engine) BuildTemplates

func (p *Engine) BuildTemplates() error

BuildTemplates builds the templates

func (*Engine) ExecuteWriter

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

ExecuteWriter executes a templates and write its results to the out writer layout here is useless

Jump to

Keyboard shortcuts

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