Created
June 29, 2018 16:22
-
-
Save Cibernomadas/c61bff4553f32d5e0d678ff2714d1833 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{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