/[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 203 - (hide annotations)
Fri Dec 2 23:01:25 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1356 byte(s)
 r11427@llin:  dpavlin | 2005-12-02 23:58:03 +0100
 huge update: new upstream HTML::Prototype and handling of Ajax.Autocompleter mode: enter
 now *ALWAYS* trigger search, while accepting suggestions is made using tab.
 Also, list doesn't wrap. [0.12]
 

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     Config::YAML
16 dpavlin 100 FillInForm
17 dpavlin 93 /;
18 dpavlin 97 # FormValidator
19 dpavlin 83
20 dpavlin 203 our $VERSION = '0.12-dev';
21 dpavlin 83
22     #
23     # Configure the application
24     #
25 dpavlin 93 __PACKAGE__->config(
26     name => 'Webpacus',
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 dpavlin 139 $c->stash->{webpacus_version} = $VERSION;
68    
69 dpavlin 83 # Forward to View unless response body is already defined
70     $c->forward('View::TT') unless $c->response->body;
71 dpavlin 97
72 dpavlin 100 $c->fillform; # defaults to $c->req->parameters
73    
74 dpavlin 98 # $c->log->debug( $c->response->body );
75 dpavlin 97
76 dpavlin 83 }
77    
78     =back
79    
80     =head1 AUTHOR
81    
82 dpavlin 203 Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >>
83 dpavlin 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