Updated func name to get route url in templates.
This commit is contained in:
parent
5805afe947
commit
3525d5d704
5 changed files with 11 additions and 11 deletions
|
|
@ -4,7 +4,7 @@
|
|||
{{else if or (eq .StatusCode 403) (eq .StatusCode 401)}}
|
||||
<p>You are not authorized to view the requested page.</p>
|
||||
{{else if eq .StatusCode 404}}
|
||||
<p>Click {{link (call .Reverse "home") "here" .Path}} to return home</p>
|
||||
<p>Click {{link (call .ToURL "home") "here" .Path}} to return home</p>
|
||||
{{else}}
|
||||
<p>Something went wrong</p>
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue