mustache: github.com/hoisie/mustache Index | Files

package mustache

import "github.com/hoisie/mustache"

Index

Package Files

mustache.go

func Render Uses

func Render(data string, context ...interface{}) string

func RenderFile Uses

func RenderFile(filename string, context ...interface{}) string

func RenderFileInLayout Uses

func RenderFileInLayout(filename string, layoutFile string, context ...interface{}) string

func RenderInLayout Uses

func RenderInLayout(data string, layoutData string, context ...interface{}) string

type Template Uses

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

func ParseFile Uses

func ParseFile(filename string) (*Template, error)

func ParseString Uses

func ParseString(data string) (*Template, error)

func (*Template) Render Uses

func (tmpl *Template) Render(context ...interface{}) string

func (*Template) RenderInLayout Uses

func (tmpl *Template) RenderInLayout(layout *Template, context ...interface{}) string

Package mustache imports 10 packages (graph) and is imported by 100 packages. Updated 2017-10-08. Refresh now. Tools for package owners.