[% name %]->setup;
-sub default : Private {
- my ( $self, $c ) = @_;
- $c->res->output('Congratulations, [% name %] is on Catalyst!');
-}
-
=head1 NAME
-[% name %] - A very nice application
+[% name %] - Catalyst based application
=head1 SYNOPSIS
- Very simple to use
+ script/[% appprefix %]_server.pl
=head1 DESCRIPTION
-Very nice application.
+Catalyst based application.
+
+=head1 METHODS
+
+=over4
+
+=item default
+
+=cut
+
+sub default : Private {
+ my ( $self, $c ) = @_;
+ $c->res->output('Congratulations, [% name %] is on Catalyst!');
+}
=head1 AUTHOR
=cut
1;
-
__makefile__
unless ( eval "use Module::Build::Compat 0.02; 1" ) {
print "This module requires Module::Build to install itself.\n";
Module::Build::Compat->run_build_pl( args => \@ARGV );
require Module::Build;
Module::Build::Compat->write_makefile( build_class => 'Module::Build' );
-
__build__
use strict;
use Catalyst::Build;
test_files => [ glob('t/*.t'), glob('t/*/*.t') ]
);
$build->create_build_script;
-
__readme__
Run script/[% apprefix %]_server.pl to test the application.
-
__changes__
This file documents the revision history for Perl extension [% name %].
-
0.01 [% time %]
- initial revision, generated by Catalyst
-
__apptest__
use Test::More tests => 2;
use_ok( Catalyst::Test, '[% name %]' );
ok( request('/')->is_success );
-
__podtest__
use Test::More;
plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
all_pod_files_ok();
-
__podcoveragetest__
use Test::More;
plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
all_pod_coverage_ok();
-
__cgi__
[% startperl %] -w
BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
it under the same terms as perl itself.
=cut
-
__fastcgi__
[% startperl %] -w
it under the same terms as perl itself.
=cut
-
__server__
[% startperl %] -w
it under the same terms as perl itself.
=cut
-
__test__
[% startperl %] -w
it under the same terms as perl itself.
=cut
-
__create__
[% startperl %] -w
create.pl model My::Model
create.pl model SomeDB CDBI dbi:SQLite:/tmp/my.db
create.pl model AnotherDB CDBI dbi:Pg:dbname=foo root 4321
- create.pl Ajax
See also:
perldoc Catalyst::Manual
it under the same terms as perl itself.
=cut
-
__compclass__
package [% class %];
use strict;
use base 'Catalyst::Base';
-[% IF type == 'C' %]
-sub default : Private {
- my ( $self, $c ) = @_;
- $c->res->output('Congratulations, [% class %] is on Catalyst!');
-}
-
-[% END %]
=head1 NAME
[% class %] - A Component
=head1 SYNOPSIS
- Very simple to use
+See L<[% app %]>
=head1 DESCRIPTION
-Very nice component.
+Catalyst component.
+[% IF type == 'C' %]
+=head1 METHODS
+
+=over4
+
+=item default
+=cut
+
+sub default : Private {
+ my ( $self, $c ) = @_;
+ $c->res->output('Congratulations, [% class %] is on Catalyst!');
+}
+[% END %]
=head1 AUTHOR
[%author%]
=cut
1;
-
__comptest__
[% IF type == 'C' %]
use Test::More tests => 3;