From 127b40c27ab07ad15d1876be1baf2170b684d71e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 26 Dec 2022 16:48:11 +0100 Subject: not_found: allow custom error message --- templates/not_found.html.ep | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep index c2bc09f..411080a 100644 --- a/templates/not_found.html.ep +++ b/templates/not_found.html.ep @@ -3,7 +3,12 @@
404 Not Found -

Diese Seite gibt es hier nicht.

+ % if (my $m = stash('message')) { +

<%= $m %>

+ % } + % else { +

Diese Seite gibt es hier nicht.

+ % }
-- cgit v1.2.3