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