Instantly share code, notes, and snippets.

Embed
What would you like to do?
{{define "content"}}
<div>
<h1>User: {{ .user.Username }}</h1>
<hr>
{{ range $post := .posts }}
<p>
{{ $post.User.Username }} says: <b>{{ $post.Body }}</b>
</p>
{{ end }}
</div>
{{end}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment