Versions in this module Expand all Collapse all v1 v1.1.0 Jun 15, 2015 Changes in this version type Template + func ParseFile(filePath string) (*Template, error) + func (tpl *Template) Clone() *Template + func (tpl *Template) RegisterPartialFile(filePath string, name string) error + func (tpl *Template) RegisterPartialFiles(filePaths ...string) error v1.0.0 Jun 8, 2015 Changes in this version + func Escape(s string) string + func IsTrue(obj interface{}) bool + func MustRender(source string, ctx interface{}) string + func RegisterHelper(name string, helper interface{}) + func RegisterHelpers(helpers map[string]interface{}) + func RegisterPartial(name string, source string) + func RegisterPartialTemplate(name string, tpl *Template) + func RegisterPartials(partials map[string]string) + func Render(source string, ctx interface{}) (string, error) + func Str(value interface{}) string + type DataFrame struct + func NewDataFrame() *DataFrame + func (p *DataFrame) Copy() *DataFrame + func (p *DataFrame) Get(key string) interface{} + func (p *DataFrame) Set(key string, val interface{}) + type Options struct + func (options *Options) Ctx() interface{} + func (options *Options) Data(name string) interface{} + func (options *Options) DataFrame() *DataFrame + func (options *Options) DataStr(name string) string + func (options *Options) Eval(ctx interface{}, field string) interface{} + func (options *Options) Fn() string + func (options *Options) FnCtxData(ctx interface{}, data *DataFrame) string + func (options *Options) FnData(data *DataFrame) string + func (options *Options) FnWith(ctx interface{}) string + func (options *Options) Hash() map[string]interface{} + func (options *Options) HashProp(name string) interface{} + func (options *Options) HashStr(name string) string + func (options *Options) Inverse() string + func (options *Options) NewDataFrame() *DataFrame + func (options *Options) Param(pos int) interface{} + func (options *Options) ParamStr(pos int) string + func (options *Options) Params() []interface{} + func (options *Options) Value(name string) interface{} + func (options *Options) ValueStr(name string) string + type SafeString string + type Template struct + func MustParse(source string) *Template + func Parse(source string) (*Template, error) + func (tpl *Template) Exec(ctx interface{}) (result string, err error) + func (tpl *Template) ExecWith(ctx interface{}, privData *DataFrame) (result string, err error) + func (tpl *Template) MustExec(ctx interface{}) string + func (tpl *Template) PrintAST() string + func (tpl *Template) RegisterHelper(name string, helper interface{}) + func (tpl *Template) RegisterHelpers(helpers map[string]interface{}) + func (tpl *Template) RegisterPartial(name string, partial string) + func (tpl *Template) RegisterPartialTemplate(name string, partial *Template) + func (tpl *Template) RegisterPartials(partials map[string]string) Incompatible versions in this module v2.0.2+incompatible Mar 22, 2018 v2.0.1+incompatible Jun 1, 2016 v2.0.0+incompatible May 1, 2016