From 6079b1d963f34ada5c4b25363f2319901e283936 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 8 Jun 2024 00:01:44 +0200 Subject: feat: Add error handling --- templates/error.qtpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/error.qtpl (limited to 'templates/error.qtpl') diff --git a/templates/error.qtpl b/templates/error.qtpl new file mode 100644 index 0000000..771d533 --- /dev/null +++ b/templates/error.qtpl @@ -0,0 +1,16 @@ +{% code +type ErrorPage struct { + Message string +} +%} + +{% func (p *ErrorPage) Title() %}Error{% endfunc %} + +{% func (p *ErrorPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %} + +{% func (p *ErrorPage) Content() %} +{%s p.Message %} +{% endfunc %} + +{% func (p *ErrorPage) Script() %} +{% endfunc %} -- cgit v1.2.3