From 58131ae05a1848f04f07442a7f88bd01d923396c Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 24 Nov 2004 23:27:33 +0000 Subject: [PATCH] SYNOPSIS updates: RT bug: 7834 - missing ' RT bug: 7651 - add template_root git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@289 48953598-375a-da11-a14b-00016c27c3ee --- lib/CGI/Maypole.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/CGI/Maypole.pm b/lib/CGI/Maypole.pm index ddcf222..9233163 100644 --- a/lib/CGI/Maypole.pm +++ b/lib/CGI/Maypole.pm @@ -62,10 +62,11 @@ CGI::Maypole - CGI-based front-end to Maypole =head1 SYNOPSIS package BeerDB; - use base 'CGI::Maypole; + use base 'CGI::Maypole'; BeerDB->setup("dbi:mysql:beerdb"); BeerDB->config->uri_base("http://your.site/cgi-bin/beer.cgi/"); BeerDB->config->display_tables([qw[beer brewery pub style]]); + BeerDB->config->template_root("/var/www/beerdb/"); # Now set up your database: # has-a relationships # untaint columns @@ -73,12 +74,15 @@ CGI::Maypole - CGI-based front-end to Maypole 1; ## example beer.cgi: - + #!/usr/bin/perl -w use strict; use BeerDB; BeerDB->run(); +Now to access the beer database, type this URL into your browser: +http://your.site/cgi-bin/beer.cgi/frontpage + =head1 DESCRIPTION This is a handler for Maypole which will use the CGI instead of Apache's -- 2.39.5