Call config as a method rather than poking the hash directly. Less gross
[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
239b5fc0 15use Catalyst qw/-Debug
16 ConfigLoader
17 Static::Simple/;
8662edf6 18
19extends 'Catalyst';
20
239b5fc0 21our $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
52L<[% rootname %]>, L<Catalyst>
53
54=head1 AUTHOR
55
56[% author %]
57
58=head1 LICENSE
59
60This library is free software. You can redistribute it and/or modify
61it under the same terms as Perl itself.
62
63=cut
64
651;