[dw-nonfree] Remove Apache2-specificness from DW::Routing and friends
[commit: http://hg.dwscoalition.org/dw-nonfree/rev/393caf5a4a29]
http://bugs.dwscoalition.org/show_bug.cgi?id=2282
DW::Routing/DW::Template no longer Apache2 specific.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2282
DW::Routing/DW::Template no longer Apache2 specific.
Patch by
Files modified:
- cgi-bin/DW/Controller/DreamwidthMisc.pm
--------------------------------------------------------------------------------
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;
--------------------------------------------------------------------------------
