iris/_examples/routing/subdomains/http-errors-view/views/error.html

10 lines
289 B
HTML
Raw Normal View History

2020-08-15 11:17:48 +02:00
<div style="background-color: black; color: red">
<h1>Oups, you've got an error!</h1>
{{ if .ErrorCode }}
{{ $tmplName := print "partials/" .ErrorCode ".html"}}
{{ render $tmplName . }}
2020-08-15 11:17:48 +02:00
{{ else }}
{{ render "partials/500.html" . }}
2020-08-15 11:17:48 +02:00
{{ end }}
</div>