move example

This commit is contained in:
Risotto Bias 2025-04-07 05:35:41 -06:00
parent c74c6dd6d1
commit 57b8ffc481
7 changed files with 16 additions and 1 deletions

1
example/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
example

View file

@ -1,4 +1,4 @@
package templates_test package main_test
import ( import (
"embed" "embed"

14
example/main.go Normal file
View file

@ -0,0 +1,14 @@
package main
import (
"embed"
"git.bivouac.wiki/use/templates"
)
//go:embed example_templates
var tpfs embed.FS
func main() {
templates.NewTemplates(tpfs, "example_templates")
}