yoake/cmd/compile/compile.go

17 lines
271 B
Go
Raw Permalink Normal View History

2022-11-07 04:45:02 -06:00
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)
}
}