Moved Chained intro to dispatch type and made recursion test more sane.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / WritingPlugins.pod
index c44bbb7..5af1713 100644 (file)
@@ -25,7 +25,7 @@ This technique is the usual way to plug a module into Catalyst.
 
 =head1 INTEGRATING YOUR PLUGIN
 
-You can use L<NEXT> for your lugin by overloading certain methods which
+You can use L<NEXT> for your plugin by overloading certain methods which
 are called by Catalyst during a request.
 
 =head2 The request life-cycle
@@ -108,7 +108,7 @@ the rest of the arguments to the next handler in row by calling it via
     $c->NEXT::handler-name( @_ );
 
 if you already C<shift>ed it out of C<@_>. Remember to C<use> C<NEXT>.
+
 =head2 Storage and Configuration
 
 Some Plugins use their accessor names as a storage point, e.g.
@@ -131,16 +131,16 @@ Here's a simple example Plugin that shows how to overload C<prepare>
 to add a unique ID to every request:
 
     package Catalyst::Plugin::RequestUUID;
-    
+
     use warnings;
     use strict;
-    
+
     use Catalyst::Request;
     use Data::UUID;
     use NEXT;    
 
     our $VERSION = 0.01;
-    
+
     {   # create a uuid accessor
         package Catalyst::Request;
         __PACKAGE__->mk_accessors('uuid');
@@ -148,7 +148,8 @@ to add a unique ID to every request:
 
     sub prepare {
       my $class = shift;
-      
+
+      # Turns the engine-specific request into a Catalyst context .
       my $c = $class->NEXT::prepare( @_ );
 
       $c->request->uuid( Data::UUID->new->create_str );
@@ -248,6 +249,6 @@ under the same terms as Perl itself.
 =head1 AUTHOR
 
 S<Robert Sedlacek, C<phaylon@dunkelheit.at>> with a lot of help from the
-poeple on #catalyst.
+people on #catalyst.
 
 =cut