diff --git a/template.go b/template.go index d0e1e82..f86d4a8 100644 --- a/template.go +++ b/template.go @@ -47,6 +47,9 @@ func (t Template) JawsEvent(e *Element, wht what.What, val string) error { return callEventHandler(t.Dot, e, wht, val) } +// NewTemplate simply returns a Template{} with the members set. +// +// Provided as convenience so as to not have to name the structure members. func NewTemplate(name string, dot any) Template { return Template{Name: name, Dot: dot} }