MojoMojo::Formatter::File::DocBook - format Docbook in xhtml


MojoMojo documentation Contained in the MojoMojo distribution.

Index


Code Index:

NAME

Top

MojoMojo::Formatter::File::DocBook - format Docbook in xhtml

DESCRIPTION

Top

METHODS

Top

can_format

Can format DocBook (xml)

to_xhtml <dbk>

Takes DocBook documentation 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::DocBook;

use parent qw/MojoMojo::Formatter/;

use MojoMojo::Formatter::DocBook;


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

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


sub to_xhtml {
    my ( $class, $dbk ) = @_;
    my $result;

    return MojoMojo::Formatter::DocBook->to_xhtml($dbk);
}


1;