udemy-go-web-1/templates/about.page.tmpl
2024-06-28 15:41:25 +02:00

22 lines
628 B
Cheetah

{{template "base" .}}
{{define "content"}}
<div class="container">
<div class="row">
<div class="col">
<h1>This is the about page</h1>
<p>This is the content</p>
<p>This came from the template: {{index .StringMap "test"}}</p>
<p>
{{if ne (index .StringMap "remote_ip") ""}}
Your remote IP address is {{index .StringMap "remote_ip"}}
{{else}}
I don't know your ip address yet. Visit the <a href="/"></a> so I can set it.
{{end}}
</p>
</div>
</div>
</div>
{{end}}