NAME
WWW::Wikipedia::TemplateFiller::WebApp - Web interface to WWW::Wikipedia::TemplateFiller
SYNOSPSIS
Inside the index.cgi instance script:
#!/usr/bin/perl
use WWW::Wikipedia::TemplateFiller::WebApp;
my %config = (
template_path => '/path/to/web/templates',
isbndb_access_key => 'access key here',
);
WWW::Wikipedia::TemplateFiller::WebApp->new( PARAMS => \%config )->run
DESCRIPTION
This module provides a CGI::Application interface to WWW::Wikipedia::TemplateFiller so that the work of http://diberri.dyndns.org/cgi-bin/templatefiller/ can be distributed across multiple servers.
Please see the included INSTALL file for detailed installation instructions.
METHODS
setup
Sets up the app for CGI::Application.
view_page
Method corresponding to the view
run mode, which constructs both the input form and the results page.
load_template
Loads the specified HTML::Template template.
known_data_source
my $bool = $self->known_data_source( $id_name );
Returns true if $id_name
refers to a valid data source. For example, returns true if $id_name
is 'pubmed_id'
but returns false if $id_name
is 'something_else'
.
data_sources
Returns all data sources in an array reference.
query_params
Returns all relevant query params passed in this HTTP request.
params
Returns all known parameters and their labels.
checkbox_options
Same as params
but suitable output for CGI::checkbox calls.
display_error
Error-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.
AUTHOR
David J. Iberri, <diberri at cpan.org>
BUGS
Please report any bugs or feature requests to bug-www-wikipedia-templatefiller at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Wikipedia-TemplateFiller. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WWW::Wikipedia::TemplateFiller
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Wikipedia-TemplateFiller
Search CPAN
COPYRIGHT & LICENSE
Copyright (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.