mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-24 22:30:58 +00:00
fix html template embed
This commit is contained in:
parent
c8e391274a
commit
9b76c045d6
4
wrp.go
4
wrp.go
@ -53,7 +53,7 @@ var (
|
|||||||
delay time.Duration
|
delay time.Duration
|
||||||
)
|
)
|
||||||
|
|
||||||
// go:embed *.html
|
//go:embed *.html
|
||||||
var fs embed.FS
|
var fs embed.FS
|
||||||
|
|
||||||
type geom struct {
|
type geom struct {
|
||||||
@ -471,7 +471,7 @@ func tmpl(t string) string {
|
|||||||
return string(tmpl)
|
return string(tmpl)
|
||||||
|
|
||||||
builtin:
|
builtin:
|
||||||
fhs, err := fs.Open("/wrp.html")
|
fhs, err := fs.Open("wrp.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user