16 lines
271 B
Go
16 lines
271 B
Go
package main
|
|
|
|
import (
|
|
htmlTemplate "html/template"
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
|
|
htmlTpl := htmlTemplate.Must(htmlTemplate.ParseGlob("*.tpl.html"))
|
|
for _, tpl := range htmlTpl.Templates() {
|
|
log.Printf("template: %s", tpl.Name())
|
|
tpl.Execute(os.Stdout, nil)
|
|
}
|
|
}
|