all repos — auth-boilerplate @ 9b74357216ccde9dafe9d4d3faa5e8ace72bab5b

A simple Go web-app boilerplate.

templates/example.tmpl (view raw)

1{{ extends "base.tmpl" }}
2
3{{define "title" -}}Protected page{{end}}
4
5{{define "content" -}}
6	<h1>Welcome, <i>{{.User.Username}}</i>!</h1> 
7    <p>This page is only accessible by users who have logged in.</p>
8    <a href="/logout">Logout</a>
9{{end}}