22 lines
479 B
Cheetah
22 lines
479 B
Cheetah
{{ template "header.tmpl" . }}
|
|
<div>
|
|
{{ range $comment := .Comments }}
|
|
<div class="comment">
|
|
<div>
|
|
By {{ $comment.Author }} on{{ $comment.Date }}
|
|
</div>
|
|
<div>
|
|
{{ $comment.Content }}
|
|
</div>
|
|
</div>
|
|
{{ else }}
|
|
<p>No comments...</p>
|
|
{{ end }}
|
|
<form method="POST" action="">
|
|
<input type="text" placeholder="Name" name="author"/>
|
|
<input type="field" name="content" />
|
|
<input type="text" value="{{ .Url }}" readonly />
|
|
</form>
|
|
</div>
|
|
{{ template "footer.tmpl" . }}
|