Skip to content

Commit

Permalink
tpl: Use go:embed to load internal templates
Browse files Browse the repository at this point in the history
Fixes #8297
  • Loading branch information
bep committed Feb 14, 2022
1 parent 9433cc2 commit b0a9cf0
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 871 deletions.
3 changes: 2 additions & 1 deletion magefile.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build mage
// +build mage

package main
Expand Down Expand Up @@ -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",
}

Expand Down
5 changes: 0 additions & 5 deletions tpl/tplimpl/embedded/README.md

This file was deleted.

98 changes: 0 additions & 98 deletions tpl/tplimpl/embedded/generate/generate.go

This file was deleted.

Loading

0 comments on commit b0a9cf0

Please sign in to comment.