aboutsummaryrefslogtreecommitdiff
path: root/templates/error.qtpl
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 19:42:39 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 19:42:39 +0200
commit3e435fc0d032a6cac0bdd15cdb138905ecdb7267 (patch)
tree5fc429dfa2e416e7e94d2a4d7064140918008b1b /templates/error.qtpl
parent0acfc21f54745990d094b1e6e5de463d4d8a80a3 (diff)
downloadlens-3e435fc0d032a6cac0bdd15cdb138905ecdb7267.tar.gz
lens-3e435fc0d032a6cac0bdd15cdb138905ecdb7267.tar.bz2
lens-3e435fc0d032a6cac0bdd15cdb138905ecdb7267.zip
feat: Move error from `html/template` to qtpl
Diffstat (limited to 'templates/error.qtpl')
-rw-r--r--templates/error.qtpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/error.qtpl b/templates/error.qtpl
new file mode 100644
index 0000000..b71adc8
--- /dev/null
+++ b/templates/error.qtpl
@@ -0,0 +1,16 @@
+{% code
+type ErrorPage struct {
+ Err string
+}
+%}
+
+{% func (p *ErrorPage) Title() %}
+Error
+{% endfunc %}
+
+{% func (p *ErrorPage) Content() %}
+{%s p.Err %}
+{% endfunc %}
+
+{% func (p *ErrorPage) Script() %}
+{% endfunc %}