aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/login.qtpl (renamed from templates/login.html)17
1 files changed, 13 insertions, 4 deletions
diff --git a/templates/login.html b/templates/login.qtpl
index 607faa1..b8aa98c 100644
--- a/templates/login.html
+++ b/templates/login.qtpl
@@ -1,6 +1,12 @@
-{{template "layout.html" .}}
-{{define "title"}} Login {{end}}
-{{define "content"}}
+{% code
+type LoginPage struct {}
+%}
+
+{% func (p *LoginPage) Title() %}
+Login
+{% endfunc %}
+
+{% func (p *LoginPage) Content() %}
<form action="/login" method="post">
<div class="field">
<label class="label">Username</label>
@@ -21,4 +27,7 @@
<input class="button is-pulled-right" value="login" type="submit">
</div>
</form>
-{{end}}
+{% endfunc %}
+
+{% func (p *LoginPage) Script() %}
+{% endfunc %}