From 3e435fc0d032a6cac0bdd15cdb138905ecdb7267 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Wed, 19 Jul 2023 19:42:39 +0200 Subject: feat: Move error from `html/template` to qtpl --- 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..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 %} -- cgit v1.2.3