/[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

Contents of /Webpacus/lib/Webpacus.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (show annotations)
Mon Nov 21 17:46:27 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1149 byte(s)
Import of web font-end for WebPAC v2 called WebPACus based on Catalyst
1 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 use Catalyst qw/-Debug Static::Simple Prototype Unicode::Encoding/;
13
14 our $VERSION = '0.01';
15
16 #
17 # Configure the application
18 #
19 __PACKAGE__->config( name => 'Webpacus', encoding => 'ISO-8859-2' );
20
21 #
22 # Start the application
23 #
24 __PACKAGE__->setup;
25
26 =head1 NAME
27
28 Webpacus - Catalyst based application
29
30 =head1 SYNOPSIS
31
32 script/webpacus_server.pl
33
34 =head1 DESCRIPTION
35
36 Catalyst based application.
37
38 =head1 METHODS
39
40 =over 4
41
42 =item default
43
44 =cut
45
46 sub default : Private {
47 my ( $self, $c ) = @_;
48 $c->stash->{template} = 'index.tt';
49 }
50
51 =item end
52
53 =cut
54
55 sub end : Private {
56 my ( $self, $c ) = @_;
57
58 # Forward to View unless response body is already defined
59 $c->forward('View::TT') unless $c->response->body;
60 }
61
62 =back
63
64 =head1 AUTHOR
65
66 Dobrica Pavlinusic,,,
67
68 =head1 LICENSE
69
70 This library is free software, you can redistribute it and/or modify
71 it under the same terms as Perl itself.
72
73 =cut
74
75 1;

  ViewVC Help
Powered by ViewVC 1.1.26