WWW::Wikipedia::TemplateFiller::WebApp - Web interface to WWW::Wikipedia::TemplateFiller


WWW-Wikipedia-TemplateFiller documentation  | view source Contained in the WWW-Wikipedia-TemplateFiller distribution.

Index


NAME

Top

WWW::Wikipedia::TemplateFiller::WebApp - Web interface to WWW::Wikipedia::TemplateFiller

SYNOSPSIS

Top

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

Top

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

Top

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

Top

David J. Iberri, <diberri at cpan.org>

BUGS

Top

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

Top

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

http://annocpan.org/dist/WWW-Wikipedia-TemplateFiller

* CPAN Ratings

http://cpanratings.perl.org/d/WWW-Wikipedia-TemplateFiller

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Wikipedia-TemplateFiller

* Search CPAN

http://search.cpan.org/dist/WWW-Wikipedia-TemplateFiller

COPYRIGHT & LICENSE

Top


WWW-Wikipedia-TemplateFiller documentation  | view source Contained in the WWW-Wikipedia-TemplateFiller distribution.