otfe/views/post/posts.gtpl

18 lines
264 B
Plaintext
Raw Permalink Normal View History

2022-02-23 12:07:09 +00:00
{{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}}