19f3f57feee00a87893bdf4a30b40da580e16145
[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/
16     -Debug
17     ConfigLoader
18     Static::Simple
19 /;
20
21 extends 'Catalyst';
22
23 our $VERSION = '0.01';
24 $VERSION = eval $VERSION;
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
35 __PACKAGE__->config(
36     name => '[% name %]',
37     # Disable deprecated behavior needed by old applications
38     disable_component_resolution_regex_fallback => 1,
39 );
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
59 L<[% rootname %]>, L<Catalyst>
60
61 =head1 AUTHOR
62
63 [% author %]
64
65 =head1 LICENSE
66
67 This library is free software. You can redistribute it and/or modify
68 it under the same terms as Perl itself.
69
70 =cut
71
72 1;