mirror of
https://github.com/zix99/traefik-lazyload.git
synced 2026-01-04 20:04:53 +01:00
22 lines
369 B
Go
22 lines
369 B
Go
package main
|
|
|
|
import (
|
|
"embed"
|
|
"path"
|
|
"text/template"
|
|
"traefik-lazyload/pkg/config"
|
|
)
|
|
|
|
//go:embed assets/*
|
|
var httpAssets embed.FS
|
|
|
|
const httpAssetPrefix = "/__llassets/"
|
|
|
|
type SplashModel struct {
|
|
Name string
|
|
WaitForCode int
|
|
WaitForPath string
|
|
}
|
|
|
|
var splashTemplate = template.Must(template.ParseFS(httpAssets, path.Join("assets", config.Model.Splash)))
|