summaryrefslogtreecommitdiff
path: root/GroLUG/lib/GroLUG.pm
blob: dca5de0ce426d78cfa2394c218e993450c451865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package GroLUG; 
 
use strict;
use warnings;
 
# 
# Set flags and add plugins for the application 
# 
#         -Debug: activates the debug mode for very useful log messages 
# Static::Simple: will serve static files from the application's root  
# directory 
# 
use Catalyst qw/-Debug ConfigLoader Static::Simple/;
 
our $VERSION = '0.01';
 
# 
# Start the application 
# 
__PACKAGE__->setup;
 
=head1 NAME
 
GroLUG - Catalyst based application
 
=head1 SYNOPSIS
 
    script/grolug_server.pl
 
=head1 DESCRIPTION
 
Catalyst based application.
 
=head1 METHODS
 
=cut
 
=head2 default
 
=cut
 
# 
# Output a friendly welcome message 
# 
sub default : Private {
    my ( $self$c ) = @_;
 
    # Hello World 
    $c->response->body( $c->welcome_message );
}
 
# 
# Uncomment and modify this end action after adding a View component 
# 
#=head2 end 
# 
#=cut 
# 
#sub end : Private { 
#    my ( $self, $c ) = @_; 
# 
#    # Forward to View unless response body is already defined 
#    $c->forward( $c->view('') ) unless $c->response->body; 
#} 
 
=head1 AUTHOR
 
Catalyst developer
 
=head1 LICENSE
 
This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.
 
=cut
 
1;