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
28       Maypole::Application.
29
30       This module requires CGI::Simple which you will have to install
31       yourself 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
38       provide it's functionality. See Maypole for these:
39
40       get_request
41       parse_location
42       warn
43       parse_args
44       redirect_request
45       get_protocol
46       send_output
47           Generates output (using "collect_output") and prints it.
48
49       collect_output
50           Gathers headers and output together into a string and returns it.
51
52           Splitting this code out of "send_output" supports
53           Maypole::HTTPD::Frontend.
54
55       get_template_root
56

DEPENDANCIES

58       CGI::Simple
59

AUTHORS

61       Dave Ranney "dave@sialia.com"
62
63       Simon Cozens "simon@cpan.org"
64
65
66
67perl v5.36.0                      2022-07-22                   CGI::Maypole(3)
Impressum