DW::Routing/DW::Template no longer Apache2 specific.

        Patch by exor674. 

diffs (20 lines):

diff -r f0319cc75418 -r 393caf5a4a29 cgi-bin/DW/Controller/DreamwidthMisc.pm
--- a/cgi-bin/DW/Controller/DreamwidthMisc.pm   Fri Feb 05 22:07:42 2010 +0000
+++ b/cgi-bin/DW/Controller/DreamwidthMisc.pm   Wed Feb 17 04:46:16 2010 +0000
@@ -20,13 +20,9 @@ use strict;
 use strict;
 use warnings;
 use DW::Controller;
-use DW::Routing::Apache2;
-use DW::Template::Apache2;
+use DW::Routing;
+use DW::Template;
 
-DW::Routing::Apache2->register_string( '/about', \&about_handler, app => 1 );
-
-sub about_handler {
-    return DW::Template::Apache2->render_template( 'misc/about.tt' );
-}
+DW::Routing->register_static( '/about', 'misc/about.tt', app => 1 );
 
 1;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to