Lines Matching full:templates
41 // Here we demonstrate loading a set of templates from a directory.
73 // This example demonstrates one way to share some templates
75 // templates by hand to an existing bundle of templates.
94 templates := template.Must(template.ParseGlob(pattern))
96 _, err := templates.Parse("{{define `driver1`}}Driver 1 calls T1: ({{template `T1`}})\n{{end}}")
101 _, err = templates.Parse("{{define `driver2`}}Driver 2 calls T2: ({{template `T2`}})\n{{end}}")
105 // We load all the templates before execution. This package does not require
107 err = templates.ExecuteTemplate(os.Stdout, "driver1", nil)
111 err = templates.ExecuteTemplate(os.Stdout, "driver2", nil)
121 // templates with distinct sets of helper templates.
168 // Execute the templates in the reverse order to verify the