aboutsummaryrefslogtreecommitdiff
path: root/pkg/tpl/error.templ
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tpl/error.templ')
-rw-r--r--pkg/tpl/error.templ10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/tpl/error.templ b/pkg/tpl/error.templ
new file mode 100644
index 0000000..0e0dcfa
--- /dev/null
+++ b/pkg/tpl/error.templ
@@ -0,0 +1,10 @@
+package tpl
+
+import "strconv"
+
+templ ErrorPage(code int, message string) {
+ @Layout() {
+ <h1>Ошибка { strconv.Itoa(code) }!</h1>
+ <p>{ message }</p>
+ }
+}