/[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 197 - (show annotations)
Tue Nov 29 15:30:03 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1331 byte(s)
 r11261@llin:  dpavlin | 2005-11-29 16:32:54 +0100
 close open tags works in multiple textareas

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
13 Static::Simple
14 Prototype
15 Config::YAML
16 FillInForm
17 /;
18 # FormValidator
19
20 our $VERSION = '0.10-dev';
21
22 #
23 # Configure the application
24 #
25 __PACKAGE__->config(
26 name => 'Webpacus',
27 config_file => 'config.yml',
28 );
29
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 $c->stash->{webpacus_version} = $VERSION;
68
69 # Forward to View unless response body is already defined
70 $c->forward('View::TT') unless $c->response->body;
71
72 $c->fillform; # defaults to $c->req->parameters
73
74 # $c->log->debug( $c->response->body );
75
76 }
77
78 =back
79
80 =head1 AUTHOR
81
82 Dobrica Pavlinusic,,,
83
84 =head1 LICENSE
85
86 This library is free software, you can redistribute it and/or modify
87 it under the same terms as Perl itself.
88
89 =cut
90
91 1;

  ViewVC Help
Powered by ViewVC 1.1.26