move example
This commit is contained in:
parent
c74c6dd6d1
commit
57b8ffc481
7 changed files with 16 additions and 1 deletions
1
example/.gitignore
vendored
Normal file
1
example/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
example
|
|
@ -1,4 +1,4 @@
|
||||||
package templates_test
|
package main_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
"embed"
|
14
example/main.go
Normal file
14
example/main.go
Normal 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")
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue