Versions in this module Expand all Collapse all v0 v0.0.3 Nov 11, 2016 Changes in this version + const NoLayout + const Version + var DefaultDirectory = "." + string(os.PathSeparator) + "templates" + var DefaultExtension = ".html" + func ExecuteRaw(src string, wr io.Writer, binding interface{}) error + func ExecuteRawString(src string, binding interface{}) (result string, err error) + func ExecuteString(name string, binding interface{}, options ...map[string]interface{}) (result string, err error) + func ExecuteWriter(out io.Writer, name string, binding interface{}, ...) (err error) + func GetCharsetOption(defaultValue string, options map[string]interface{}) string + func GetGzipOption(defaultValue bool, options map[string]interface{}) bool + func Load() error + type BinaryLoader struct + func (t *BinaryLoader) Binary(assetFn func(name string) ([]byte, error), namesFn func() []string) + type Engine interface + ExecuteWriter func(out io.Writer, name string, binding interface{}, ...) error + LoadAssets func(virtualDirectory string, virtualExtension string, ...) error + LoadDirectory func(directory string, extension string) error + type EngineFuncs interface + Funcs func() map[string]interface{} + type EngineRawExecutor interface + ExecuteRaw func(src string, wr io.Writer, binding interface{}) error + type Entries []*Entry + func (entries Entries) Find(filename string) *Entry + func (entries Entries) LoadAll() error + type Entry struct + Engine Engine + Loader *Loader + func (entry *Entry) LoadEngine() error + type Loader struct + AssetFn func(name string) ([]byte, error) + Dir string + Extension string + NamesFn func() []string + func AddEngine(e Engine) *Loader + func NewLoader() *Loader + func (t *Loader) Directory(dir string, fileExtension string) *BinaryLoader + func (t *Loader) IsBinary() bool + func (t *Loader) LoadEngine(e Engine) error + type Mux struct + Entries Entries + Reload bool + SharedFuncs map[string]interface{} + func NewMux(sharedFuncs ...map[string]interface{}) *Mux + func (m *Mux) AddEngine(e Engine) *Loader + func (m *Mux) ExecuteRaw(src string, wr io.Writer, binding interface{}) error + func (m *Mux) ExecuteRawString(src string, binding interface{}) (result string, err error) + func (m *Mux) ExecuteString(name string, binding interface{}, options ...map[string]interface{}) (result string, err error) + func (m *Mux) ExecuteWriter(out io.Writer, name string, binding interface{}, ...) (err error) + func (m *Mux) Load() error