templatesystem

package
v0.0.0-...-8bfda83 Latest Latest
Warning

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

Go to latest
Published: May 12, 2015 License: MIT Imports: 9 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Go

type Go struct{}

func (*Go) ParseFile

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

func (*Go) ParseString

func (self *Go) ParseString(text, name string) (Template, error)

type GoTemplate

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

func (*GoTemplate) Render

func (self *GoTemplate) Render(out io.Writer, context interface{}) (err error)

type Implementation

type Implementation interface {
	ParseFile(filename string) (Template, error)
	ParseString(text, name string) (Template, error)
}

type Mustache

type Mustache struct{}

func (*Mustache) ParseFile

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

func (*Mustache) ParseString

func (self *Mustache) ParseString(text, name string) (Template, error)

type MustacheTemplate

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

func (*MustacheTemplate) Render

func (self *MustacheTemplate) Render(out io.Writer, context interface{}) (err error)

type PassThrough

type PassThrough struct{}

func (*PassThrough) ParseFile

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

func (*PassThrough) ParseString

func (self *PassThrough) ParseString(text, name string) (Template, error)

type PassThroughTemplate

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

func (*PassThroughTemplate) Render

func (self *PassThroughTemplate) Render(out io.Writer, context interface{}) (err error)

type Printf

type Printf struct{}

func (*Printf) ParseFile

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

func (*Printf) ParseString

func (self *Printf) ParseString(text, name string) (Template, error)

type PrintfTemplate

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

func (*PrintfTemplate) Render

func (self *PrintfTemplate) Render(out io.Writer, context interface{}) (err error)

type Template

type Template interface {
	Render(out io.Writer, context interface{}) error
}

Jump to

Keyboard shortcuts

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