spitz: stathat.com/c/spitz Index | Files

package spitz

import "stathat.com/c/spitz"

Index

Package Files

funcmap.go spitz.go

Variables

var Verbose bool

type Pool Uses

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

func New Uses

func New(contentDir string, reload bool) *Pool

func (*Pool) Len Uses

func (p *Pool) Len() int

func (*Pool) Register Uses

func (p *Pool) Register(name, leftDelim, rightDelim string) error

Register adds the template at ContentDirectory + name + .tmpl.html to the set of registered templates.

func (*Pool) RegisterLayout Uses

func (p *Pool) RegisterLayout(name, header, footer string, leftDelim, rightDelim string) error

func (*Pool) RegisterMulti Uses

func (p *Pool) RegisterMulti(name, leftDelim, rightDelim string, filenames ...string) error

func (*Pool) RegisterString Uses

func (p *Pool) RegisterString(name, content string) error

func (*Pool) Render Uses

func (p *Pool) Render(layout, name string, data interface{}, wr io.Writer) error

func (*Pool) RenderMulti Uses

func (p *Pool) RenderMulti(layout, name, innerName string, data interface{}, wr io.Writer) error

func (*Pool) RenderNoLayout Uses

func (p *Pool) RenderNoLayout(name string, data interface{}, wr io.Writer) error

func (*Pool) RenderNoLayoutToString Uses

func (p *Pool) RenderNoLayoutToString(template string, data interface{}) (string, error)

func (*Pool) RenderToString Uses

func (p *Pool) RenderToString(layout, template string, data interface{}) (string, error)

Package spitz imports 10 packages (graph) and is imported by 1 packages. Updated 2016-07-19. Refresh now. Tools for package owners.