X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F02_CatalystBasics.pod;h=5d0721c3444b0467280c258130ca85cd5d41915b;hp=c410066792a9d562c12572352dcfb854bd1a29e8;hb=080bb6202ae1dc9a786bb32afcb391f542c2f0fc;hpb=08c0026dc8cd9b6f157e952b143ad329e68dbbe2 diff --git a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod index c410066..5d0721c 100644 --- a/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod @@ -290,7 +290,7 @@ L), while C<< $c->welcome_message >> is a special method that returns the welcome message that you saw in your browser. -The ":Path :Args(0)" after the method name are attributes which +The "C<:Path :Args(0)>" after the method name are attributes which determine which URLs will be dispatched to this method. (You might see ":Private" if you are using an older version of Catalyst, but using that with "default" or "index" is currently deprecated. If so, you should @@ -301,7 +301,7 @@ policy, prefers to handle URL dispatching with attributes on controller methods. There is a lot of flexibility in specifying which URLs to match. This particular method will match all URLs, because it doesn't specify the path (nothing comes after "Path"), but will only accept a -URL without any args because of the ":Args(0)". +URL without any args because of the "C<:Args(0)>". The default is to map URLs to controller names, and because of the way that Perl handles namespaces through package names, it is simple to