Versions in this module Expand all Collapse all v0 v0.1.1 Mar 1, 2021 v0.1.0 Mar 1, 2021 Changes in this version + const DefaultName + func ParseContent(content string, params ...Params) (string, error) + type Config struct + AutoEncode bool + Data map[string]interface{} + DefaultFile string + Delimiters []string + I18nManager *gi18n.Manager + Paths []string + func DefaultConfig() Config + type FuncMap = map[string]interface + type Params = map[string]interface + type View struct + func Instance(name ...string) *View + func New(path ...string) *View + func (view *View) AddPath(path string) error + func (view *View) Assign(key string, value interface{}) + func (view *View) Assigns(data Params) + func (view *View) BindFunc(name string, function interface{}) + func (view *View) BindFuncMap(funcMap FuncMap) + func (view *View) GetDefaultFile() string + func (view *View) Parse(file string, params ...Params) (result string, err error) + func (view *View) ParseContent(content string, params ...Params) (string, error) + func (view *View) ParseDefault(params ...Params) (result string, err error) + func (view *View) SetAutoEncode(enable bool) + func (view *View) SetConfig(config Config) error + func (view *View) SetConfigWithMap(m map[string]interface{}) error + func (view *View) SetDefaultFile(file string) + func (view *View) SetDelimiters(left, right string) + func (view *View) SetI18n(manager *gi18n.Manager) + func (view *View) SetPath(path string) error