/[webpac2]/Webpacus/lib/Webpacus.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /Webpacus/lib/Webpacus.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93 - (hide annotations)
Tue Nov 22 12:57:15 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1200 byte(s)
 r9014@llin:  dpavlin | 2005-11-22 00:24:47 +0100
 minor tweaks all-around

1 dpavlin 83 package Webpacus;
2    
3     use strict;
4     use warnings;
5    
6     #
7     # Set flags and add plugins for the application
8     #
9     # -Debug: activates the debug mode for very useful log messages
10     # Static::Simple: will serve static files from the applications root directory
11     #
12 dpavlin 93 use Catalyst qw/-Debug
13     Static::Simple
14     Prototype
15     Unicode::Encoding
16     Config::YAML
17     /;
18 dpavlin 83
19     our $VERSION = '0.01';
20    
21     #
22     # Configure the application
23     #
24 dpavlin 93 __PACKAGE__->config(
25     name => 'Webpacus',
26     encoding => 'ISO-8859-2',
27     config_file => 'config.yml',
28     );
29 dpavlin 83
30     #
31     # Start the application
32     #
33     __PACKAGE__->setup;
34    
35     =head1 NAME
36    
37     Webpacus - Catalyst based application
38    
39     =head1 SYNOPSIS
40    
41     script/webpacus_server.pl
42    
43     =head1 DESCRIPTION
44    
45     Catalyst based application.
46    
47     =head1 METHODS
48    
49     =over 4
50    
51     =item default
52    
53     =cut
54    
55     sub default : Private {
56     my ( $self, $c ) = @_;
57     $c->stash->{template} = 'index.tt';
58     }
59    
60     =item end
61    
62     =cut
63    
64     sub end : Private {
65     my ( $self, $c ) = @_;
66    
67     # Forward to View unless response body is already defined
68     $c->forward('View::TT') unless $c->response->body;
69     }
70    
71     =back
72    
73     =head1 AUTHOR
74    
75     Dobrica Pavlinusic,,,
76    
77     =head1 LICENSE
78    
79     This library is free software, you can redistribute it and/or modify
80     it under the same terms as Perl itself.
81    
82     =cut
83    
84     1;

  ViewVC Help
Powered by ViewVC 1.1.26