updated pod for 5.0, added some debug to testapp.
Marcus Ramberg [Mon, 18 Apr 2005 21:11:49 +0000 (21:11 +0000)]
Changes
SubRequest.pm
t/lib/TestApp.pm

diff --git a/Changes b/Changes
index d82b5cb..c34e0b0 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,6 +2,7 @@ Revision history for Perl extension Catalyst::Plugin::Static.
 
 0.04  Sat Mar 19 20:27:00 2005
         - Updated forward to cat5 style
+        - Using Catalyst::Dispatch::dispatch instead of forward.
 0.03  Sat Mar 19 20:27:00 2005
         - Fixed documentation.
 0.02  Sat Feb 19 10:32:00 2005
index d8f5b20..9014932 100644 (file)
@@ -13,11 +13,12 @@ Catalyst::Plugin::SubRequest - Make subrequests to actions in Catalyst
 
     use Catalyst 'SubRequest';
 
-    $c->subreq('!test','foo','bar');
+    $c->subreq('/test','foo','bar');
 
 =head1 DESCRIPTION
 
-Make subrequests to actions in Catalyst.
+Make subrequests to actions in Catalyst. Uses the private name of
+the action for dispatch.
 
 =head1 METHODS
 
index 19d0c33..b9e3e16 100644 (file)
@@ -10,7 +10,7 @@ __PACKAGE__->setup();
 
     sub begin : Private {
         my ( $self, $c ) = @_;
-        $c->res->body($c->res->body().'1');
+        $c->res->body('1');
     }
 
     sub subreq : Global {