{{define "userpage"}} <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>user</title> </head> <body> <h1> Hello {{.Username}} </h1><br> {{range $key, $value := .Items}}<h2> {{$key}}: {{$value}}<h2> <hr> {{end}} </html> {{end}}