{{ define "content" }} <div class="container"> {{if not .Data}} <p>Nothing to show.</p> {{else}} <div class="list-group" id="myUL"> {{range $teacher := .Data}} {{$teacher.Surname}} {{$teacher.Name}} {{end}} </div> {{end}} </div> {{ end }}