|
NAMEHTML::WikiConverter::WebApp - Web interface to HTML::WikiConverterSYNOPSISInside the index.cgi instance script (which is included with this distribution):#!/usr/bin/perl use HTML::WikiConverter::WebApp; my %config = ( template_path => '/path/to/web/templates', ); HTML::WikiConverter::WebApp->new( PARAMS => \%config )->run; DESCRIPTIONThis module provides a CGI::Application interface to HTML::WikiConverter and all installed dialect modules.Refer to the INSTALL file for installation instructions. QUERY PARAMETERSThis application accepts a number of query parameters to control its behavior. The most basic is the run mode parameter, "m". This application can be in one of two run modes: "new" or "convert". (These correspond to the "new_page()" and "output_page()" methods, respectively.) "new" causes a new page to be displayed, while "convert" displays the results of html-to-wiki conversion.Additional query parameters can be passed independent of run mode:
METHODSsetupSets up the app for CGI::Application.new_pageCorresponds to the "new" run mode. Returns a blank form. If arguments are available on the CGI query string, these are used as default values for the form fields.output_pageCorresponds to the "convert" run mode. Same as "new_page()" but returns the wiki markup for the provided html as well.load_templateLoads the specified HTML::Template template.display_errorError-catching method called by CGI::Application if a run mode fails for any reason. Displays a basic form with a styled error message up top.AUTHORDavid J. Iberri, "<diberri at cpan.org>"BUGSPlease report any bugs or feature requests to "bug-html-wikiconverter at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-WikiConverter>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc HTML::WikiConverter::WebApp You can also look for information at:
COPYRIGHT & LICENSECopyright (c) David J. Iberri, all rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |