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.
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 or html, to render to, which defaults to yaml.
yaml
json
xml
html
renderers
Returns a list of the supported renderers.
my @types = App::CPANIDX::Renderer->renderers;
render
Renders 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>
BinGOs
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.
App::CPANIDX
To install App::CPANIDX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CPANIDX
CPAN shell
perl -MCPAN -e shell install App::CPANIDX
For more information on module installation, please visit the detailed CPAN module installation guide.