Catalyst::Controller::POD - Serves PODs right from your Catalyst application
Create a new controller and paste this code:
package MyApp::Controller::YourNewController; # <-- Change this to your controller
use base 'Catalyst::Controller::POD';
inc => 1,
namespaces => [qw(Catalyst::Manual*)],
self => 1,
dirs => [qw()]
This is a catalyst controller which serves PODs. It allows you to browse through your local repository of modules. On the front page of this controller is a search box which uses CPAN's xml interface to retrieve the results. If you click on one of them the POD is displayed in this application.
Cross links in PODs are resolved and pop up as a new tab. If the module you clicked on is not installed this controller fetches the source code from CPAN and creates the pod locally. There is also a TOC which is always visible and scrolls the current POD to the selected section.
Have a look at http://cpan.org/authors/id/P/PE/PERLER/pod-images/pod-encyclopedia-01.png.
Catalyst::Plugin::Static::Simple is required and has to be loaded.
Search for modules in these directories.
Defaults to .
Expand the module browser tree on initial page load.
Defaults to 1
HTML to be displayed in the Home tab.
Defaults to the existing CPAN search box.
Search for modules in @INC. Set it to 1 or 0.
Defaults to 0.
If this option is specified, a tab displaying the perldoc for the given module will be opened on load. Handy if you wish to disable the home tab and specify a specific module's perldoc as the initial page a user sees.
Defaults to ""
Filter by namespaces. See Pod::Simple::Search limit_glob for syntax.
Defaults to ["*"]
Search for modules in $c->path_to( 'lib' ).
$c->path_to( 'lib' )
Defaults to 1.
Show or hide the home tab.
This module works fine for most PODs but there are a few which do not get rendered properly. Please report any bug you find. See "BUGS".
Have a look at Pod::Browser which is a catalyst application running this controller. You can use it as a stand-alone POD server.
Write more tests!
This software is Copyright (c) 2011 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Catalyst::Controller::POD, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.