1CGI::Maypole(3)       User Contributed Perl Documentation      CGI::Maypole(3)
2
3
4

NAME

6       CGI::Maypole - CGI-based front-end to Maypole
7

SYNOPSIS

9            package BeerDB;
10            use Maypole::Application;
11
12            ## example beer.cgi:
13
14            #!/usr/bin/perl -w
15            use strict;
16            use BeerDB;
17            BeerDB->run();
18
19       Now to access the beer database, type this URL into your browser:
20       http://your.site/cgi-bin/beer.cgi/frontpage
21
22       NOTE: this Maypole frontend requires additional modules that won't be
23       installed or included with Maypole. Please see below.
24

DESCRIPTION

26       This is a CGI platform driver for Maypole. Your application can inherit
27       from CGI::Maypole directly, but it is recommended that you use May‐
28       pole::Application.
29
30       This module requires CGI::Simple which you will have to install your‐
31       self via CPAN or manually.
32

METHODS

34       run Call this from your CGI script to start the Maypole application.
35

Implementation

37       This class overrides a set of methods in the base Maypole class to pro‐
38       vide it's functionality. See Maypole for these:
39
40       get_request
41       parse_location
42       parse_args
43       redirect_request
44       get_protocol
45       send_output
46           Generates output (using "collect_output") and prints it.
47
48       collect_output
49           Gathers headers and output together into a string and returns it.
50
51           Splitting this code out of "send_output" supports May‐
52           pole::HTTPD::Frontend.
53
54       get_template_root
55

DEPENDANCIES

57       CGI::Simple
58

AUTHORS

60       Dave Ranney "dave@sialia.com"
61
62       Simon Cozens "simon@cpan.org"
63
64
65
66perl v5.8.8                       2005-11-23                   CGI::Maypole(3)
Impressum