
App::CPANIDX::Renderer - Generates web content for App::CPANIDX

my @types = App::CPANIDX::Renderer->renderers; my $ren = App::CPANIDX::Renderer->new( \@data, 'yaml' ); my ($content_type, $content) = $ren->render();

App::CPANIDX::Renderer renders web content for App::CPANIDX.

newReturns 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 or html, to render to, which defaults to yaml.

renderersReturns a list of the supported renderers.
my @types = App::CPANIDX::Renderer->renderers;

renderRenders the previously supplied data to the format specified. Optionally takes one parameter, which mainly has utility with the xml format.

Chris BinGOs Williams <chris@bingosnet.co.uk>

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.
