all repos — auth-boilerplate @ d865cd0aaa53991ee5b84ad5f87d22305f3bafc2

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}}