Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
{{ if .title }}
<title>{{ .title }}</title>
{{ else }}
<title>Título por defecto</title>
{{ end }}
<p>Hola <b>{{ .username }}</b></p>
{{ range $key, $value := .posts }}
<div><p>{{ $value.user }} ha escrito: <b>{{ $value.body }}</b></p></div>
{{ else }}
<div><p>No hay mensajes</p></div>
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.