Versions in this module Expand all Collapse all v1 v1.1.7 Nov 24, 2023 Changes in this version + var CacheEnabled bool + var DefaultTimeFormat = "January 02, 2006 15:04:05 -0700" + var Helpers = HelperMap + func CacheSet(key string, t *Template) + func GroupByHelper(size int, underlying interface{}) (*groupBy, error) + func PartialHelper(name string, data map[string]interface{}, help HelperContext) (template.HTML, error) + func Render(input string, ctx hctx.Context) (string, error) + func RenderR(input io.Reader, ctx hctx.Context) (string, error) + func RunScript(input string, ctx hctx.Context) error + type Context struct + func NewContext() *Context + func NewContextWith(data map[string]interface{}) *Context + func NewContextWithContext(ctx context.Context) *Context + func NewContextWithOuter(data map[string]interface{}, out *Context) *Context + func (c *Context) Has(key string) bool + func (c *Context) New() hctx.Context + func (c *Context) Set(key string, value interface{}) + func (c *Context) Value(key interface{}) interface{} + type ErrUnknownIdentifier struct + Err error + ID string + func (e *ErrUnknownIdentifier) Error() string + type HTMLer interface + HTML func() template.HTML + type HelperContext struct + func (h HelperContext) Block() (string, error) + func (h HelperContext) BlockWith(hc hctx.Context) (string, error) + func (h HelperContext) HasBlock() bool + func (h HelperContext) Render(s string) (string, error) + type HelperMap struct + func NewHelperMap() (HelperMap, error) + func (h *HelperMap) Add(key string, helper interface{}) error + func (h *HelperMap) AddMany(helpers map[string]interface{}) error + func (h HelperMap) Helpers() map[string]interface{} + type Iterator interface + Next func() interface{} + type PartialFeeder func(string) (string, error) + type Template struct + Input string + func NewTemplate(input string) (*Template, error) + func Parse(input string) (*Template, error) + func (t *Template) Clone() *Template + func (t *Template) Exec(ctx hctx.Context) (string, error) + func (t *Template) Parse() error