otfe/views/post/posts.gtpl

18 lines
264 B
Groovy

{{define "content"}}
<h1>{{.Title}}</h1>
<ul>
{{range $i, $a := .Posts}}
<li>
<a href="/user/{{$a.ID}}">{{$a.ID}}</a>
</li>
{{end}}
</ul>
<form action="/user/new">
<button type="submit">New User</button>
</form>
{{end}}