tpl: Use go:embed to load internal templates

Fixes #8297
This commit is contained in:
Bjørn Erik Pedersen
2022-02-09 18:29:49 +01:00
parent 9433cc2562
commit b0a9cf0a75
6 changed files with 27 additions and 871 deletions

View File

@@ -1,3 +1,4 @@
//go:build mage
// +build mage
package main
@@ -79,7 +80,7 @@ func flagEnv() map[string]string {
// Generate autogen packages
func Generate() error {
generatorPackages := []string{
"tpl/tplimpl/embedded/generate",
//"tpl/tplimpl/embedded/generate",
//"resources/page/generate",
}