forked from electricdusk/rushlink
Extract error rendering
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{block "title" .}}{{end}}</title>{{block "head-append" .}}{{end}}
|
||||
<title>{{block "title" .}}rushlink{{end}}</title>{{block "head-append" .}}{{end}}
|
||||
</head>
|
||||
<body>
|
||||
{{block "body" .}}{{end}}
|
||||
8
assets/templates/html/error.html.tmpl
Normal file
8
assets/templates/html/error.html.tmpl
Normal file
@@ -0,0 +1,8 @@
|
||||
{{define "title"}}
|
||||
Error - rushlink
|
||||
{{end}}
|
||||
{{define "body"}}
|
||||
<pre>
|
||||
{{.Message}}
|
||||
</pre>
|
||||
{{end}}
|
||||
1
assets/templates/txt/error.txt.tmpl
Normal file
1
assets/templates/txt/error.txt.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
{{.Message}}
|
||||
Reference in New Issue
Block a user