NAME
App::CPANIDX::Renderer - Generates web content for App::CPANIDX
SYNOPSIS
my @types = App::CPANIDX::Renderer->renderers;
my $ren = App::CPANIDX::Renderer->new( \@data, 'yaml' );
my ($content_type, $content) = $ren->render();
DESCRIPTION
App::CPANIDX::Renderer renders web content for App::CPANIDX.
CONSTRUCTOR
new
-
Returns a new App::CPANIDX::Renderer object. Takes two parameters, an arrayref of data to be rendered, which is required, and the format, either
yaml
,json
,xml
orhtml
, to render to, which defaults toyaml
.
CLASS METHODS
renderers
-
Returns a list of the supported renderers.
my @types = App::CPANIDX::Renderer->renderers;
METHODS
render
-
Renders the previously supplied data to the format specified. Optionally takes one parameter, which mainly has utility with the
xml
format.
AUTHOR
Chris BinGOs
Williams <chris@bingosnet.co.uk>
LICENSE
Copyright © Chris Williams
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.