html

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: 10 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
	Templates *template.Template
}

Engine the html/template engine & Jade

func New

func New(c config.Template) *Engine

New creates and returns the HTMLTemplate template engine

func (*Engine) BuildTemplates

func (s *Engine) BuildTemplates() error

BuildTemplates builds the templates

func (*Engine) ExecuteWriter

func (s *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