Dynamic FAQ page template
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<h1>FAQ</h1>
|
||||
<hr>
|
||||
<h3>Is this a real website?</h3>
|
||||
<p>No.</p>
|
||||
<h3>I Can Has Cheezburger?</h3>
|
||||
<p>No.</p>
|
||||
{{range .}}
|
||||
{{template "qa" .}}
|
||||
{{end}}
|
||||
|
||||
{{define "qa"}}
|
||||
<h3>{{.Question}}</h3>
|
||||
<p>{{.Answer}}</p>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user