fix failing stemmaweb stub test
[scpubgit/stemmatology.git] / stemmaweb / lib / stemmaweb.pm
CommitLineData
5c9ecf66 1package stemmaweb;
dbcf12a6 2use Moose;
3use namespace::autoclean;
4
5use 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
19use Catalyst qw/
dbcf12a6 20 ConfigLoader
21 Static::Simple
22 Unicode::Encoding
23/;
24
25extends 'Catalyst';
26
27our $VERSION = '0.01';
28
29# Configure the application.
30#
5c9ecf66 31# Note that settings in stemmaweb.conf (or other external
dbcf12a6 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(
5c9ecf66 39 name => 'stemmaweb',
dbcf12a6 40 # Disable deprecated behavior needed by old applications
41 disable_component_resolution_regex_fallback => 1,
c4a4fb1b 42 default_view => 'TT',
b90c84a0 43 'View::JSON' => {
44 expose_stash => 'result',
45 },
350a6cdc 46 'View::TT' => {
47 INCLUDE_PATH => [
48 stemmaweb->path_to( 'root', 'src' ),
49 ],
50 },
dbcf12a6 51);
52
53# Start the application
54__PACKAGE__->setup();
55
56
57=head1 NAME
58
5c9ecf66 59stemmaweb - Catalyst based application
dbcf12a6 60
61=head1 SYNOPSIS
62
5c9ecf66 63 script/stemmaweb_server.pl
dbcf12a6 64
65=head1 DESCRIPTION
66
67[enter your description here]
68
69=head1 SEE ALSO
70
5c9ecf66 71L<stemmaweb::Controller::Root>, L<Catalyst>
dbcf12a6 72
73=head1 AUTHOR
74
75Tara L Andrews
76
77=head1 LICENSE
78
79This library is free software. You can redistribute it and/or modify
80it under the same terms as Perl itself.
81
82=cut
83
841;