Lines Matching refs:pattern
444 // files identified by the pattern, which must match at least one file. The
446 // first file matched by the pattern. ParseGlob is equivalent to calling
447 // ParseFiles with the list of files matched by the pattern.
451 func ParseGlob(pattern string) (*Template, error) {
452 return parseGlob(nil, pattern)
456 // pattern and associates the resulting templates with t. The pattern is
459 // pattern.
465 func (t *Template) ParseGlob(pattern string) (*Template, error) {
466 return parseGlob(t, pattern)
470 func parseGlob(t *Template, pattern string) (*Template, error) {
474 filenames, err := filepath.Glob(pattern)
479 return nil, fmt.Errorf("html/template: pattern matches no files: %#q", pattern)