udemy-go-web-1/templates/choose-room.page.tmpl

18 lines
359 B
Cheetah

{{template "base" .}}
{{define "content"}}
<div class="container">
<div class="row">
<div class="col">
<h1>Choose a Room</h1>
{{$rooms := index .Data "rooms"}}
{{range $rooms}}
<li><a href="/choose-room/{{.ID}}">{{.RoomName}}</a></li>
{{end}}
</div>
</div>
</div>
{{end}}