MojoMojo::Formatter::File::Pod - format Pod File in xhtml


MojoMojo documentation Contained in the MojoMojo distribution.

Index


Code Index:

NAME

Top

MojoMojo::Formatter::File::Pod - format Pod File in xhtml

DESCRIPTION

Top

METHODS

Top

can_format

Can format Pod File

to_xhtml

takes Pod text and renders it as XHTML.

SEE ALSO

Top

MojoMojo,Module::Pluggable::Ordered

AUTHORS

Top

Daniel Brosseau <dab@catapulse.org>

LICENSE

Top

This module is licensed under the same terms as Perl itself.


MojoMojo documentation Contained in the MojoMojo distribution.
package MojoMojo::Formatter::File::Pod;

use parent qw/MojoMojo::Formatter/;

use MojoMojo::Formatter::Pod;


sub can_format { 
  my $self = shift;
  my $type = shift;

  return 1 if ( $type eq "pod" );
  return 0;
}


sub to_xhtml {
    my ( $self, $text ) = @_;
    my $result;
    return MojoMojo::Formatter::Pod->to_pod( $text );
}




1;