Created
May 29, 2018 20:56
-
-
Save Cibernomadas/694c88019fc6e03b9ff8c7230bf489a1 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
<html> | |
<head> | |
{{ if .title }} | |
<title>{{ .title }}</title> | |
{{ else }} | |
<title>Título por defecto</title> | |
{{ end }} | |
</head> | |
<body> | |
<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 }} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment