X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FIntro.pod;h=a15f7d12c23e5d3d2e4ea623011f98818fcb5a40;hp=3538185d77c454b7d4e1ac568ea51e7f88e22403;hb=845ef40515e6cfbdfb8c6b53a5872fb216225feb;hpb=d05dbc42af07f09f0d0a50c10f868a0b82e052d6 diff --git a/lib/Catalyst/Manual/Intro.pod b/lib/Catalyst/Manual/Intro.pod index 3538185..a15f7d1 100644 --- a/lib/Catalyst/Manual/Intro.pod +++ b/lib/Catalyst/Manual/Intro.pod @@ -870,7 +870,7 @@ the namespace. Use whichever makes the most sense for your application. -=item * Changing handler behaviour: adding arguments (C<:Args>) +=item * Changing handler behaviour: eating arguments (C<:Args>) Args is not an action type per se, but an action modifier - it adds a match restriction to any action it's provided to, additionally @@ -886,6 +886,16 @@ would match any URL starting /foo/bar. To restrict this you can do to only match URLs starting /foo/bar/* - with one additional path element required after 'bar'. +NOTE that adding C<:Args(0)> and missing out :Args completely are B +the same thing. + +C<:Args(0)> means that no arguments are taken. Thus, the URL and path must +match precisely. + +No :Args at all means that B of arguments are taken. Thus, any +URL that B the controller's path will match. + + =item * Literal match (C<:Path>) C actions match things starting with a precise specified path,