template

package
v0.0.0-...-53a2c46 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML = template.HTML

HTML contains raw HTML.

type Template

type Template struct {
	// contains filtered or unexported fields
}

Template represents an HTML template with partial support and hot reload.

func New

func New(folder, ext string) (*Template, error)

New instanciates a new Template.

func (*Template) ExecuteTemplate

func (t *Template) ExecuteTemplate(w io.Writer, name string, data interface{}) error

ExecuteTemplate executes a template an write the output on w.

func (*Template) Lookup

func (t *Template) Lookup(name string) bool

Lookup searches for a named template. It returns true if the template if found, false otherwise.

func (*Template) StopWatch

func (t *Template) StopWatch() error

StopWatch stops to watch for change in the template folder,

func (*Template) Watch

func (t *Template) Watch() error

Watch watches for change in the template folder.

type URL

type URL = template.URL

URL represents a raw URL.

Jump to

Keyboard shortcuts

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