« blib/lib/auto/share/dist/Clustericious/tmpl/1.08/app/lib/APPCLASS/Routes.pm
↑ Summary
blib/lib/Clustericious.pm »
| 1 | % my $class = shift; | ||
| 2 | package <%= $class %>::Client; | ||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | <%= $class %>::Client - <%= $class %> Client | ||
| 7 | |||
| 8 | =head1 SYNOPSIS | ||
| 9 | |||
| 10 | my $c = <%= $class %>::Client->new(); | ||
| 11 | my $msg = $c->welcome or die $c->errorstring; | ||
| 12 | |||
| 13 | =head1 METHODS | ||
| 14 | |||
| 15 | =cut | ||
| 16 | |||
| 17 | use strict; | ||
| 18 | use warnings; | ||
| 19 | |||
| 20 | use Clustericious::Client; | ||
| 21 | |||
| 22 | our $VERSION = '0.01'; | ||
| 23 | |||
| 24 | =head2 welcome | ||
| 25 | |||
| 26 | Get a welcome message. | ||
| 27 | |||
| 28 | Arguments : | ||
| 29 | verbose : be verbose | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | route 'welcome' => 'GET', '/'; | ||
| 34 | route_args 'welcome' => [ | ||
| 35 | { name => 'verbose', type => '=s', modifies_url => 'query' }, | ||
| 36 | ]; | ||
| 37 | |||
| 38 | =head1 SEE ALSO | ||
| 39 | |||
| 40 | <%= lc $class.'client' %> | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | 1; | ||
| 45 |