WWW::AutositeSupport subroutines for autosite handlers, router, and misc cgi scripts | |
Download |
WWW::Autosite Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Leo Charre
- Publisher web site:
- http://search.cpan.org/~leocharre/
WWW::Autosite Tags
WWW::Autosite Description
Support subroutines for autosite handlers, router, and misc cgi scripts WWW::Autosite is a Perl module designed to support subroutines for building CGI with HTML::Template.SYNOPSISIn /var/www/cgi-bin/wraphtm.cgi: #!/usr/bin/perl -w use strict; use WWW::Autosite ':all'; my $tmpl = handler_tmpl(); feed_META( $tmpl, $ENV{PATH_TRANSLATED} ); feed_ENV( $tmpl); feed_FILE( $tmpl, $ENV{PATH_TRANSLATED} ); feed_PLUGIN_PATH_NAVIGATION($tmpl, $ENV{PATH_TRANSLATED}); $tmpl->param( BODY => slurp($ENV{PATH_TRANSLATED})); print "Content-Type: text/html "; print $tmpl->output; exit;In /var/www/html/barebones.htm: < h1 >Welcome!< /h1 > < p >This is some wonderful html content here.< /p >In /var/www/html/barebones.htm.meta: --- title: BareBones file. description: This is one lonely file. keywords: bare,bare bones,barebone author: Myself A IIn /var/www/html/.htaccess: Action wraphtm /cgi-bin/wraphtm.cgi AddHandler wraphtm .htm Requirements: · Perl
WWW::Autosite Related Software