{{define "content"}} | |
<div> | |
<table> | |
<tr valign="top"> | |
<td><img src="{{ .user.Avatar 128 }}"></td> | |
<td><h1>User: {{ .user.Username }}</h1></td> | |
</tr> | |
</table> | |
<hr> | |
{{ range $post := .posts }} | |
<table> | |
<tr valign="top"> | |
<td><img src="{{ $post.Author.Avatar 36 }}"></td> | |
<td>{{ $post.Author.Username }} says:<br>{{ $post.Body }}</td> | |
</tr> | |
</table> | |
{{ end }} | |
</div> | |
{{end}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment