1
0
mirror of https://github.com/nxshock/gron.git synced 2024-11-27 03:41:00 +05:00
gron/template.go
nxshock 1c00dfabc9 New updates
* Rework job status
* Group WebUI files
* New WebUI details page
2022-03-30 21:06:55 +05:00

22 lines
321 B
Go

package main
import (
"embed"
"html/template"
log "github.com/sirupsen/logrus"
)
//go:embed webui/*
var siteFS embed.FS
var templates *template.Template
func initTemplate() {
var err error
templates, err = template.ParseFS(siteFS, "webui/*.htm")
if err != nil {
log.Fatalln("init template error:", err)
}
}