/[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 98 - (hide annotations)
Tue Nov 22 12:57:41 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1300 byte(s)
 r9029@llin:  dpavlin | 2005-11-22 13:58:36 +0100
 fixed encodings

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 97 # FormValidator
19     # FillInForm
20 dpavlin 83
21     our $VERSION = '0.01';
22    
23     #
24     # Configure the application
25     #
26 dpavlin 93 __PACKAGE__->config(
27     name => 'Webpacus',
28     config_file => 'config.yml',
29     );
30 dpavlin 83
31     #
32     # Start the application
33     #
34     __PACKAGE__->setup;
35    
36     =head1 NAME
37    
38     Webpacus - Catalyst based application
39    
40     =head1 SYNOPSIS
41    
42     script/webpacus_server.pl
43    
44     =head1 DESCRIPTION
45    
46     Catalyst based application.
47    
48     =head1 METHODS
49    
50     =over 4
51    
52     =item default
53    
54     =cut
55    
56     sub default : Private {
57     my ( $self, $c ) = @_;
58     $c->stash->{template} = 'index.tt';
59     }
60    
61     =item end
62    
63     =cut
64    
65     sub end : Private {
66     my ( $self, $c ) = @_;
67    
68     # Forward to View unless response body is already defined
69     $c->forward('View::TT') unless $c->response->body;
70 dpavlin 97
71 dpavlin 98 # $c->log->debug( $c->response->body );
72 dpavlin 97
73     # $c->fillform; # defaults to $c->req->parameters
74 dpavlin 83 }
75    
76     =back
77    
78     =head1 AUTHOR
79    
80     Dobrica Pavlinusic,,,
81    
82     =head1 LICENSE
83    
84     This library is free software, you can redistribute it and/or modify
85     it under the same terms as Perl itself.
86    
87     =cut
88    
89     1;

  ViewVC Help
Powered by ViewVC 1.1.26