root => '$base/root',
);
-$name->action(
-
- '!default' => sub {
- my ( \$self, \$c ) = \@_;
- \$c->res->output('Congratulations, $name is on Catalyst!');
- },
-
-);
+sub default : Private {
+ my ( \$self, \$c ) = \@_;
+ \$c->res->output('Congratulations, $name is on Catalyst!');
+}
=head1 NAME
$self->mk_file( "$script\/server.pl", <<"EOF");
$Config{startperl} -w
-BEGIN { \$ENV{CATALYST_ENGINE} = 'Server' }
+BEGIN { \$ENV{CATALYST_ENGINE} = 'HTTP::Daemon' }
use strict;
use Getopt::Long;
my $action = '';
$action = <<"EOF" if $type eq 'C';
-$app->action(
-
- '!?default' => sub {
- my ( \$self, \$c ) = \@_;
- \$c->res->output('Congratulations, $class is on Catalyst!');
- },
+sub default : Private {
+ my ( \$self, \$c ) = \@_;
+ \$c->res->output('Congratulations, $class is on Catalyst!');
+}
-);
EOF
my $file = $self->{file};
return $self->mk_file( "$file", <<"EOF");