Permalink
Browse files

remove version from 404 and 500 html pages

  • Loading branch information...
1 parent 63a42f6 commit 1d49cba26ee4ff2ad3581b4cf236fad5e984f330 @ambs ambs committed Aug 16, 2011
Showing with 42 additions and 12 deletions.
  1. +1 −0 CHANGES
  2. +41 −12 script/dancer
View
@@ -15,6 +15,7 @@
* Depend on URI 1.59 - Fixes problems when redirecting with
UTF-8 strings (Alberto Simões)
* Fix before_serializer POD fix (Yanick Champoux)
+ * Remove hard-coded version from 404.html and 500.html (Alberto Simões)
[ ENHANCEMENTS ]
* send_file can send data (pass a reference to a scalar), and can
View
@@ -845,18 +845,47 @@ pre.error {
",
-"404.html" =>
- Dancer::Renderer->html_page(
- "Error 404",
- '<h2>Page Not Found</h2><p>Sorry, this is the void.</p>',
- 'error'),
-
-"500.html" =>
- Dancer::Renderer->html_page(
- "Error 500",
- '<h2>Internal Server Error</h2>'
- . '<p>Wooops, something went wrong</p>',
- 'error'),
+"404.html" => <<EOH,
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>Error 404</title>
+<link rel="stylesheet" href="/css/error.css" />
+<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
+</head>
+<body>
+<h1>Error 404</h1>
+<div id="content">
+<h2>Page Not Found</h2><p>Sorry, this is the void.</p>
+</div>
+<div id="footer">
+Powered by <a href="http://perldancer.org/">Dancer</a>.
+</div>
+</body>
+</html>
+EOH
+
+"500.html" => <<EOH,
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>Error 500</title>
+<link rel="stylesheet" href="/css/error.css" />
+<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
+</head>
+<body>
+<h1>Error 500</h1>
+<div id="content">
+<h2>Internal Server Error</h2><p>Wooops, something went wrong</p>
+</div>
+<div id="footer">
+Powered by <a href="http://perldancer.org/">Dancer</a>.
+</div>
+</body>
+</html>
+EOH
'config.yml' =>

0 comments on commit 1d49cba

Please sign in to comment.