From: Ian Wells Date: Tue, 14 Apr 2009 22:44:42 +0000 (+0000) Subject: DispatchTypes' POD refers to Catalyst::Manual::Intro, nominated as the best location... X-Git-Tag: 5.80001~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=26dc649ad1a74622697f25fcbf29e806e75fcd2f DispatchTypes' POD refers to Catalyst::Manual::Intro, nominated as the best location to put action/dispatch information --- diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index 6ac653d..fb4d0af 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -14,7 +14,12 @@ See L. =head1 DESCRIPTION -This is an abstract base class for Dispatch Types. +This is an abstract base class for Dispatch Types. + +From a code perspective, dispatch types are used to find which actions +to call for a given request URL. Website authors will typically work +with them via subroutine names attributes; a description of dispatch +at the attribute/URL level is given in L. =head1 METHODS diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 95d6559..602894c 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -39,6 +39,8 @@ Catalyst::DispatchType::Chained - Path Part DispatchType =head1 SYNOPSIS +Path part matching, allowing several actions to sequentially take care of processing a request: + # root action - captures one argument after it sub foo_setup : Chained('/') PathPart('foo') CaptureArgs(1) { my ( $self, $c, $foo_arg ) = @_; @@ -53,7 +55,16 @@ Catalyst::DispatchType::Chained - Path Part DispatchType =head1 DESCRIPTION -See L. +Dispatch type managing default behaviour. For more information on +dispatch types, see: + +=over 4 + +=item * L for how they affect website authors + +=item * L for implementation information. + +=back =head1 METHODS diff --git a/lib/Catalyst/DispatchType/Default.pm b/lib/Catalyst/DispatchType/Default.pm index 2fc3bc9..e12816f 100644 --- a/lib/Catalyst/DispatchType/Default.pm +++ b/lib/Catalyst/DispatchType/Default.pm @@ -11,10 +11,21 @@ Catalyst::DispatchType::Default - Default DispatchType =head1 SYNOPSIS -See L. +See L. =head1 DESCRIPTION +Dispatch type managing default behaviour. For more information on +dispatch types, see: + +=over 4 + +=item * L for how they affect website authors + +=item * L for implementation information. + +=back + =head1 METHODS =head2 $self->match( $c, $path ) diff --git a/lib/Catalyst/DispatchType/Index.pm b/lib/Catalyst/DispatchType/Index.pm index 610e0a4..8f0707e 100644 --- a/lib/Catalyst/DispatchType/Index.pm +++ b/lib/Catalyst/DispatchType/Index.pm @@ -10,10 +10,21 @@ Catalyst::DispatchType::Index - Index DispatchType =head1 SYNOPSIS -See L. +See L. =head1 DESCRIPTION +Dispatch type managing behaviour for index pages. For more information on +dispatch types, see: + +=over 4 + +=item * L for how they affect website authors + +=item * L for implementation information. + +=back + =head1 METHODS =head2 $self->match( $c, $path ) diff --git a/lib/Catalyst/DispatchType/Path.pm b/lib/Catalyst/DispatchType/Path.pm index d58f1fd..f792fc5 100644 --- a/lib/Catalyst/DispatchType/Path.pm +++ b/lib/Catalyst/DispatchType/Path.pm @@ -22,10 +22,21 @@ Catalyst::DispatchType::Path - Path DispatchType =head1 SYNOPSIS -See L. +See L. =head1 DESCRIPTION +Dispatch type managing full path matching behaviour. For more information on +dispatch types, see: + +=over 4 + +=item * L for how they affect website authors + +=item * L for implementation information. + +=back + =head1 METHODS =head2 $self->list($c) diff --git a/lib/Catalyst/DispatchType/Regex.pm b/lib/Catalyst/DispatchType/Regex.pm index 1ffa932..4c6bf4c 100644 --- a/lib/Catalyst/DispatchType/Regex.pm +++ b/lib/Catalyst/DispatchType/Regex.pm @@ -22,10 +22,21 @@ Catalyst::DispatchType::Regex - Regex DispatchType =head1 SYNOPSIS -See L. +See L. =head1 DESCRIPTION +Dispatch type managing path-matching behaviour using regexes. For +more information on dispatch types, see: + +=over 4 + +=item * L for how they affect website authors + +=item * L for implementation information. + +=back + =head1 METHODS =head2 $self->list($c)