aboutsummaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2025-02-06 15:22:34 +0000
committerLeonardo Bishop <me@leonardobishop.com>2025-02-06 15:22:34 +0000
commit2475f5a8b92ef0dd28e7af5f36d01b25243ed778 (patch)
tree12f8931d241db4159f8d30f7bf2b648709a94166 /web/web.go
Initial commit
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go
new file mode 100644
index 0000000..eb955fe
--- /dev/null
+++ b/web/web.go
@@ -0,0 +1,13 @@
+package web
+
+import (
+ "embed"
+ "html/template"
+)
+
+//go:embed *
+var files embed.FS
+
+func Index() *template.Template {
+ return template.Must(template.ParseFS(files, "index.html"))
+}