Saving work
parent
c6e64b8160
commit
6393ef71f6
@ -0,0 +1,21 @@
|
|||||||
|
{{ define "base" -}}
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>{{template "title" .}}</title>
|
||||||
|
<link rel="stylesheet" href="/static/css.main.css">
|
||||||
|
<link rel="short icon" href="/static/img/favicon.ico" type="image/x-icon">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1>Server Sent Events Example</h1>
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
{{template "main" .}}
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
<footer>Powered By <a href='https://golang.org/'>Go</a> in {{ .CurrentYear }}</footer>
|
||||||
|
<script src="/static/js/main.js" type="text/javascript"></script>
|
||||||
|
</html>
|
||||||
|
{{ end }}
|
@ -0,0 +1,6 @@
|
|||||||
|
{{define "title"}}SSE Example{{end}}
|
||||||
|
|
||||||
|
{{define "main"-}}
|
||||||
|
<h1>SSE Content</h1>
|
||||||
|
<p id="stuff"></p>
|
||||||
|
{{end}}
|
Loading…
Reference in New Issue