Home | History | Annotate | Download | only in template

Lines Matching defs:new

163 	// Regardless, some new ones may have been defined.
171 tmpl = t.new(name)
181 // AddParseTree creates a new template with the name and parse tree
248 // New allocates a new HTML template with the given name.
249 func New(name string) *Template {
252 template.New(name),
262 // New allocates a new HTML template associated with the given one
265 func (t *Template) New(name string) *Template {
268 return t.new(name)
271 // new is the implementation of New, without the lock.
272 func (t *Template) new(name string) *Template {
275 t.text.New(name),
327 // var t = template.Must(template.New("name").Parse("html"))
335 // ParseFiles creates a new Template and parses the template definitions from
365 // and we use that one for subsequent New calls to associate
368 // t, err := New(name).Funcs(xxx).ParseFiles(name)
369 // works. Otherwise we create a new template associated with t.
372 t = New(name)
377 tmpl = t.New(name)
387 // ParseGlob creates a new Template and parses the template definitions from the