CGI::Maypole(3)
π CGI::Maypole π
okay bestie, gather round, because this is the CGI-based front-end to Maypole and she is serving. This page lives in the User Contributed Perl Documentation section of the manual, and the module is CGI::Maypole, no cap. π
β¨ NAME β¨
CGI::Maypole β a CGI-based front-end to Maypole. it's giving "let my Maypole app run inside a plain old CGI script" and honestly? iconic. π
πΈ SYNOPSIS πΈ
package BeerDB;
use Maypole::Application;
## example beer.cgi:
#!/usr/bin/perl -w
use strict;
use BeerDB;
BeerDB->run();
so now, to go touch the beer database with your own two hands, you type this URL into your browser:
http://your.site/cgi-bin/beer.cgi/frontpage
NOTE: this Maypole frontend needs extra modules that are not gonna be installed or included with Maypole itself. pls read below, i'm begging. π
π¦ DESCRIPTION π¦
This is a CGI platform driver for Maypole, periodt. Your application can inherit from CGI::Maypole directly, but bestie, the recommendation is that you use Maypole::Application instead. trust. β¨
This module requires CGI::Simple, and you're gonna have to install that yourself β via CPAN or manually, your call, but it's on you. π
π METHODS π
runβ call this from your CGI script to start up the Maypole application. that's it, that's the whole vibe. π
Implementation π
This class overrides a whole set of methods in the base Maypole class to provide its functionality. go peek at Maypole for these ones:
get_requestparse_locationwarnparse_argsredirect_requestget_protocolsend_outputβ generates output (usingcollect_output) and prints it.collect_outputβ gathers headers and output together into a single string and returns it.- splitting this code out of
send_outputis what supportsMaypole::HTTPD::Frontend.
- splitting this code out of
get_template_root
π DEPENDANCIES π
CGI::Simple
(yes, that's the section name, i'm not fixing it, it's part of the lore. π)
π AUTHORS π
- Dave Ranney
dave@sialia.com - Simon Cozens
simon@cpan.org
and that's the whole page, bestie!! π«Ά this one's from perl v5.42.0, dated 2025-07-25 β so go forth, run your CGI, and slay. mwah. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Maypole 1:2.13-46.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms