sometimes consistency is not a bad thing either.
[catagits/Catalyst-Devel.git] / share / lib / MyApp.pm.tt
CommitLineData
239b5fc0 1package [% name %];
8662edf6 2use Moose;
3use namespace::autoclean;
239b5fc0 4
5use 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
0c34c8b8 15use Catalyst qw/
7e6d9ba3 16 -Debug
0c34c8b8 17 ConfigLoader
18 Static::Simple
19/;
8662edf6 20
21extends 'Catalyst';
22
239b5fc0 23our $VERSION = '0.01';
0c34c8b8 24$VERSION = eval $VERSION;
239b5fc0 25
26# Configure the application.
27#
28# Note that settings in [% appprefix %].conf (or other external
29# configuration file that you set up manually) take precedence
30# over this when using ConfigLoader. Thus configuration
31# details given here can function as a default configuration,
32# with an external configuration file acting as an override for
33# local deployment.
34
0c34c8b8 35__PACKAGE__->config(
7e6d9ba3 36 name => '[% name %]',
37 # Disable deprecated behavior needed by old applications
38 disable_component_resolution_regex_fallback => 1,
0c34c8b8 39);
239b5fc0 40
41# Start the application
42__PACKAGE__->setup();
43
44
45=head1 NAME
46
47[% name %] - Catalyst based application
48
49=head1 SYNOPSIS
50
51 script/[% appprefix %]_server.pl
52
53=head1 DESCRIPTION
54
55[enter your description here]
56
57=head1 SEE ALSO
58
59L<[% rootname %]>, L<Catalyst>
60
61=head1 AUTHOR
62
63[% author %]
64
65=head1 LICENSE
66
67This library is free software. You can redistribute it and/or modify
68it under the same terms as Perl itself.
69
70=cut
71
721;