yoake/cmd/compile/compile.go
2022-11-07 05:45:02 -05:00

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)
}
}