Replace template dir file path hack with embed directive.
This commit is contained in:
parent
11f5ddcee4
commit
29fbadbadd
7 changed files with 21 additions and 33 deletions
8
templates/templates.go
Normal file
8
templates/templates.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package templates
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed *
|
||||
var Templates embed.FS
|
||||
Loading…
Add table
Add a link
Reference in a new issue