X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=d50fb163222de3a99c1632f4e4a2671596521561;hb=3e53f0cdd06d090d5d93dd085dce0889ddd2ad02;hp=3db98d08307f6b626b2d49836526e77ee2a40e07;hpb=fc7ec1d96ee55d1bf42af3abce155ecb717b9e2b;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 3db98d0..d50fb16 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -192,6 +192,10 @@ server [options] -help display this help and exits -port port (defaults to 3000) + See also: + perldoc Catalyst::Manual + perldoc Catalyst::Manual::Intro + =head1 DESCRIPTION Run a Catalyst Testserver for this application. @@ -253,8 +257,12 @@ test [options] uri -help display this help and exits Examples: - test http://localhost/some_action - test /some_action + perl test http://localhost/some_action + perl test /some_action + + See also: + perldoc Catalyst::Manual + perldoc Catalyst::Manual::Intro =head1 DESCRIPTION @@ -308,15 +316,23 @@ create - Create a new Catalyst Component =head1 SYNOPSIS -create [options] model|view|controller name +create [options] model|view|controller name [helper] [options] Options: -help display this help and exits Examples: - create controller My::Controller - create model My::Model - create view My::View + perl create controller My::Controller + perl create view My::View + perl create view MyView TT + perl create view TT TT + perl create model My::Model + perl create model SomeDB CDBI dbi:SQLite:/tmp/my.db + perl create model AnotherDB CDBI dbi:Pg:dbname=foo root 4321 + + See also: + perldoc Catalyst::Manual + perldoc Catalyst::Manual::Intro =head1 DESCRIPTION @@ -492,6 +508,26 @@ EOF } } +=head1 HELPERS + +Helpers are classes that provide two methods. + + * mk_compclass - creates the Component class + * mk_comptest - creates the Component test + +So when you call C, create would try to execute +Catalyst::Helper::View::TT->mk_compclass and +Catalyst::Helper::View::TT->mk_comptest. + +See L and L for +examples. + +All helper classes should be under one of the following namespaces. + + Catalyst::Helper::Model:: + Catalyst::Helper::View:: + Catalyst::Helper::Controller:: + =head1 SEE ALSO L, L, L,