all repos — nergen.net-guestbook.git @ 4b116bb12defb8023960aa877082983ebc1b3a96

Unnamed repository; edit this file 'description' to name the repository.

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 }}