10 return $self->handler();
15 shift->{cgi} = CGI::Simple->new();
20 $self->{path} = $self->{cgi}->url(-absolute=>1, -path_info=>1);
21 my $loc = $self->{cgi}->url(-absolute=>1);
22 no warnings 'uninitialized';
23 $self->{path} =~ s/^($loc)?\///;
30 $self->{params} = { $self->{cgi}->Vars };
31 $self->{query} = { $self->{cgi}->Vars };
36 print $r->{cgi}->header(-type => $r->{content_type},
37 -content_length => length $r->{output},
42 sub get_template_root {
44 $r->{cgi}->document_root . "/". $r->{cgi}->url(-relative=>1);
52 CGI::Maypole - CGI-based front-end to Maypole
57 use base 'CGI::Maypole;
58 BeerDB->setup("dbi:mysql:beerdb");
59 BeerDB->config->{uri_base} = "http://your.site/cgi-bin/beer.cgi/";
60 BeerDB->config->{display_tables} = [qw[beer brewery pub style]];
61 # Now set up your database:
76 This is a handler for Maypole which will use the CGI instead of Apache's
77 C<mod_perl> 1.x. This handler can also be used for Apache 2.0.
81 Dave Ranney C<dave@sialia.com>
83 Simon Cozens C<simon@cpan.org>