NAME

AnnoCPAN::PodToHtml - Convert POD to HTML

SYNOPSIS

# this is low-level use of Pod::Parser, in AnnoCPAN::DBI

my $parser = AnnoCPAN::PodToHtml->new;

my %methods = (
    VERBATIM,  'verbatim',
    TEXTBLOCK, 'textblock',
    COMMAND,   'command',
);

sub html {
    my ($self) = @_;
    my $method = $methods{$self->type};
    my @args = $self->content;
    if ($method eq 'command') {
        # split into command and content
        @args = $args[0] =~ /==?(\S+)\s+(.*)/s;
    }
    my $html = $parser->$method(@args);
}

DESCRIPTION

This is a subclass of Pod::Parser for converting POD into HTML. It overrides the verbatim, textblock, command, and interior_sequence methods.

SEE ALSO

AnnoCPAN::DBI

AUTHOR

Ivan Tubert-Brohman <itub@cpan.org>

COPYRIGHT

Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.