feat(template): add ch-cross

This commit is contained in:
2025-08-22 16:34:08 +02:00
parent 7c6916f3a1
commit 0267e6e578
4 changed files with 117 additions and 6 deletions

View File

@@ -10,12 +10,19 @@ import (
"time"
)
//go:embed template.html
//go:embed assets/template.html
var htmlTemplate string
//go:embed style.css
//go:embed assets/style.css
var style template.CSS
//go:embed assets/ch-cross.svg
var chCross template.HTML
func (r Report) ChCross() template.HTML {
return chCross
}
func (r Report) ToHTML() string {
tmpl := template.Must(
template.New("report").Funcs(template.FuncMap{