aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/pages/pages.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/html/pages/pages.go')
-rw-r--r--pkg/html/pages/pages.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/html/pages/pages.go b/pkg/html/pages/pages.go
index 0040c8617..51bc902c7 100644
--- a/pkg/html/pages/pages.go
+++ b/pkg/html/pages/pages.go
@@ -1,11 +1,10 @@
// Copyright 2022 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-//go:generate ./gen.sh
-
package pages
import (
+ _ "embed" // for go:embed directives
"fmt"
"html/template"
"io/fs"
@@ -28,3 +27,9 @@ func getHeadTemplate() string {
const headTempl = `<style type="text/css" media="screen">%v</style><script>%v</script>`
return fmt.Sprintf(headTempl, style, js)
}
+
+//go:embed style.css
+var style string
+
+//go:embed common.js
+var js string