[Jifty-commit] r7121 - jifty/trunk/lib/Jifty/Plugin/Config

Jifty commits jifty-commit at lists.jifty.org
Mon Jun 1 14:45:33 EDT 2009


Author: sartak
Date: Mon Jun  1 14:45:33 2009
New Revision: 7121

Modified:
   jifty/trunk/lib/Jifty/Plugin/Config/View.pm

Log:
Use TD, since we have it

Modified: jifty/trunk/lib/Jifty/Plugin/Config/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Config/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Config/View.pm	Mon Jun  1 14:45:33 2009
@@ -55,17 +55,31 @@
       . Jifty->config->framework('Web')->{Port}
       . $url
       unless $url =~ /^https?:/;
-    outs_raw(<<"EOF");
-<html>
-<head>
-<title>Restarting @{[ Jifty->config->framework('ApplicationName') ]}</title>
-<meta http-equiv="refresh" content="$seconds;url=$url" />
-</head>
-<body>
-<p>Please wait a few moments so the server can restart, then we'll redirect you <a href="$url">here</a>.</p>
-</body>
-</html>
-EOF
+
+    html {
+        head {
+            title {
+                outs "Restarting ";
+                outs Jifty->config->framework('ApplicationName');
+            };
+            meta {
+                attr {
+                    'http-equiv' => 'refresh',
+                    content      => "$seconds;url=$url",
+                };
+            };
+        };
+        body {
+            p {
+                outs "Please wait a few moments so the server can restart, then we'll redirect you ";
+                hyperlink(
+                    label => "here",
+                    url   => $url,
+                );
+                outs ".";
+            }
+        }
+    };
 
     Jifty->handler->buffer->flush_output();
     $Jifty::SERVER->restart;


More information about the Jifty-commit mailing list