Sicilian buttercup unicode
[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 # Note that ORDERING IS IMPORTANT here as plugins are initialized in order,
10 # therefore you almost certainly want to keep ConfigLoader at the head of the
11 # list if you're using it.
12 #
13 #         -Debug: activates the debug mode for very useful log messages
14 #   ConfigLoader: will load the configuration from a Config::General file in the
15 #                 application's home directory
16 # Static::Simple: will serve static files from the application's root
17 #                 directory
18
19 use Catalyst qw/
20     -Debug
21     ConfigLoader
22     Static::Simple
23 /;
24
25 extends 'Catalyst';
26
27 our $VERSION = '0.01';
28
29 # Configure the application.
30 #
31 # Note that settings in [% appprefix %].conf (or other external
32 # configuration file that you set up manually) take precedence
33 # over this when using ConfigLoader. Thus configuration
34 # details given here can function as a default configuration,
35 # with an external configuration file acting as an override for
36 # local deployment.
37
38 __PACKAGE__->config(
39     name => '[% name %]',
40     # Disable deprecated behavior needed by old applications
41     disable_component_resolution_regex_fallback => 1,
42     enable_catalyst_header => 1, # Send X-Catalyst header
43     encoding => 'UTF-8, # Setup request decoding and response encoding
44 );
45
46 # Start the application
47 __PACKAGE__->setup();
48
49 =encoding utf8
50
51 =head1 NAME
52
53 [% name %] - Catalyst based application
54
55 =head1 SYNOPSIS
56
57     script/[% appprefix %]_server.pl
58
59 =head1 DESCRIPTION
60
61 [enter your description here]
62
63 =head1 SEE ALSO
64
65 L<[% rootname %]>, L<Catalyst>
66
67 =head1 AUTHOR
68
69 [% author %]
70
71 =head1 LICENSE
72
73 This library is free software. You can redistribute it and/or modify
74 it under the same terms as Perl itself.
75
76 =cut
77
78 1;