Change generated application skeleton to use Moose
[catagits/Catalyst-Devel.git] / share / lib / MyApp.pm.tt
1 package [% name %];
2 use Moose;
3 use namespace::autoclean;
4
5 use Catalyst::Runtime 5.80;
6
7 # Set flags and add plugins for the application
8 #
9 #         -Debug: activates the debug mode for very useful log messages
10 #   ConfigLoader: will load the configuration from a Config::General file in the
11 #                 application's home directory
12 # Static::Simple: will serve static files from the application's root
13 #                 directory
14
15 use Catalyst qw/-Debug
16                 ConfigLoader
17                 Static::Simple/;
18
19 extends 'Catalyst';
20
21 our $VERSION = '0.01';
22
23 # Configure the application.
24 #
25 # Note that settings in [% appprefix %].conf (or other external
26 # configuration file that you set up manually) take precedence
27 # over this when using ConfigLoader. Thus configuration
28 # details given here can function as a default configuration,
29 # with an external configuration file acting as an override for
30 # local deployment.
31
32 __PACKAGE__->config( name => '[% name %]' );
33
34 # Start the application
35 __PACKAGE__->setup();
36
37
38 =head1 NAME
39
40 [% name %] - Catalyst based application
41
42 =head1 SYNOPSIS
43
44     script/[% appprefix %]_server.pl
45
46 =head1 DESCRIPTION
47
48 [enter your description here]
49
50 =head1 SEE ALSO
51
52 L<[% rootname %]>, L<Catalyst>
53
54 =head1 AUTHOR
55
56 [% author %]
57
58 =head1 LICENSE
59
60 This library is free software. You can redistribute it and/or modify
61 it under the same terms as Perl itself.
62
63 =cut
64
65 1;