Experimenting with sessions
This commit is contained in:
@ -7,6 +7,14 @@
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user