Documentation ¶
Index ¶
- type Engine
- func (e *Engine) Build(name, tpl string) (interface{}, Error)
- func (e *Engine) BuildAndRender(name string, tpl string, data interface{}) ([]byte, Error)
- func (e *Engine) BuildFile(name string, paths ...string) (interface{}, Error)
- func (e *Engine) BuildFileAndRender(name string, data interface{}, paths ...string) ([]byte, Error)
- func (e *Engine) Clear()
- func (e *Engine) GetTemplate(name string) interface{}
- func (e *Engine) Render(name string, data interface{}) ([]byte, Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) BuildAndRender ¶
func (*Engine) BuildFileAndRender ¶
func (*Engine) GetTemplate ¶
Click to show internal directories.
Click to hide internal directories.