Documentation ¶
Index ¶
- Variables
- type Pool
- func (p *Pool) Len() int
- func (p *Pool) Register(name, leftDelim, rightDelim string) error
- func (p *Pool) RegisterLayout(name, header, footer string, leftDelim, rightDelim string) error
- func (p *Pool) RegisterMulti(name, leftDelim, rightDelim string, filenames ...string) error
- func (p *Pool) RegisterString(name, content string) error
- func (p *Pool) Render(layout, name string, data interface{}, wr io.Writer) error
- func (p *Pool) RenderMulti(layout, name, innerName string, data interface{}, wr io.Writer) error
- func (p *Pool) RenderNoLayout(name string, data interface{}, wr io.Writer) error
- func (p *Pool) RenderNoLayoutToString(template string, data interface{}) (string, error)
- func (p *Pool) RenderToString(layout, template string, data interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Verbose bool
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) Register ¶
Register adds the template at ContentDirectory + name + .tmpl.html to the set of registered templates.
func (*Pool) RegisterLayout ¶
func (*Pool) RegisterMulti ¶
func (*Pool) RegisterString ¶
func (*Pool) RenderMulti ¶
func (*Pool) RenderNoLayout ¶
func (*Pool) RenderNoLayoutToString ¶
Click to show internal directories.
Click to hide internal directories.