templates/guestbook-body.gohtml (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{{ define "guestbookbody" }} <section id="rendered-posts"> {{ range . }} {{ block "rendered-post" .}} <div class="rendered-post"> <div class="rendered-post__date">{{ .Stamp.Format "Jan 02, 2006" }}</div> <div class="rendered-post__id"><a href="#">#{{ .ID }}</a></div> <div class=rendered-post__content>{{ .Msg | safeHTML }}</div> </div> {{ end }} {{ end }} </section> {{ end }} |