From 6393ef71f64b58dc3c4d80e990091c4cd189270e Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 13 Jul 2025 08:43:41 -0400 Subject: [PATCH] Saving work --- ui/html/base.go.tmpl | 21 +++++++++++++++++++++ ui/html/index.go.tmpl | 6 ++++++ ui/static/css/main.css | 0 ui/static/js/main.js | 0 4 files changed, 27 insertions(+) create mode 100644 ui/html/base.go.tmpl create mode 100644 ui/html/index.go.tmpl create mode 100644 ui/static/css/main.css create mode 100644 ui/static/js/main.js diff --git a/ui/html/base.go.tmpl b/ui/html/base.go.tmpl new file mode 100644 index 0000000..299f4f9 --- /dev/null +++ b/ui/html/base.go.tmpl @@ -0,0 +1,21 @@ +{{ define "base" -}} + + + + + {{template "title" .}} + + + + +
+

Server Sent Events Example

+
+
+ {{template "main" .}} +
+ + + + +{{ end }} \ No newline at end of file diff --git a/ui/html/index.go.tmpl b/ui/html/index.go.tmpl new file mode 100644 index 0000000..d80126b --- /dev/null +++ b/ui/html/index.go.tmpl @@ -0,0 +1,6 @@ +{{define "title"}}SSE Example{{end}} + +{{define "main"-}} +

SSE Content

+

+{{end}} \ No newline at end of file diff --git a/ui/static/css/main.css b/ui/static/css/main.css new file mode 100644 index 0000000..e69de29 diff --git a/ui/static/js/main.js b/ui/static/js/main.js new file mode 100644 index 0000000..e69de29