Versions in this module Expand all Collapse all v2 v2.0.6 Jun 10, 2022 Changes in this version + const DefaultName + func ParseContent(ctx context.Context, 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 Option struct + Content string + File string + Orphan bool + Params Params + 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(ctx context.Context, file string, params ...Params) (result string, err error) + func (view *View) ParseContent(ctx context.Context, content string, params ...Params) (string, error) + func (view *View) ParseDefault(ctx context.Context, params ...Params) (result string, err error) + func (view *View) ParseOption(ctx context.Context, option Option) (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 v2.0.6-1 Jun 11, 2022