WebUI sessions implemented

This commit is contained in:
da
2017-01-09 21:34:37 +01:00
parent cecfff984c
commit 64cff2bb92
5 changed files with 169 additions and 23 deletions
+4
View File
@@ -0,0 +1,4 @@
{{ define "title"}}<title>Example</title>{{ end }}
{{ define "content" }}
<a href="/discordLogin">Login with Discord</a>
{{ end }}
+17
View File
@@ -0,0 +1,17 @@
{{ define "base" }}
<html>
<head>
<link rel="stylesheet" href="/static/css/style.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
{{template "title" . }}
</head>
<body>
<header>
<h1>Example</h1>
</header>
<div id="page">
{{ template "content" . }}
</div>
</body>
</html>
{{ end }}