| 1 | package MojoMojo::Formatter::File::DocBook; | ||||||||||
| 2 | |||||||||||
| 3 | 26 | ▶ | use parent qw/MojoMojo::Formatter/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 26 | ▶ | use MojoMojo::Formatter::DocBook; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | MojoMojo::Formatter::File::DocBook - format Docbook in xhtml | ||||||||||
| 11 | |||||||||||
| 12 | =head1 DESCRIPTION | ||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | =head1 METHODS | ||||||||||
| 16 | |||||||||||
| 17 | =head2 can_format | ||||||||||
| 18 | |||||||||||
| 19 | Can format DocBook (xml) | ||||||||||
| 20 | |||||||||||
| 21 | =cut | ||||||||||
| 22 | |||||||||||
| 23 | 2 | ▶ | sub can_format { | ||||||||
|
Subroutine
can_format: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 24 | 2 | my $self = shift; | |||||||||
| 25 | 2 | my $type = shift; | |||||||||
| 26 | |||||||||||
| 27 | 2 | ▶ | return 1 if ( $type eq "xml" ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | 2 | return 0; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | =head2 to_xhtml <dbk> | ||||||||||
| 33 | |||||||||||
| 34 | Takes DocBook documentation and renders it as XHTML. | ||||||||||
| 35 | |||||||||||
| 36 | =cut | ||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub to_xhtml { | ||||||||
|
Subroutine
to_xhtml: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 39 | 0 | my ( $class, $dbk ) = @_; | |||||||||
| 40 | 0 | my $result; | |||||||||
| 41 | |||||||||||
| 42 | 0 | return MojoMojo::Formatter::DocBook->to_xhtml($dbk); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | |||||||||||
| 46 | =head1 SEE ALSO | ||||||||||
| 47 | |||||||||||
| 48 | L<MojoMojo>, L<Module::Pluggable::Ordered> | ||||||||||
| 49 | |||||||||||
| 50 | =head1 AUTHORS | ||||||||||
| 51 | |||||||||||
| 52 | Daniel Brosseau <dab@catapulse.org> | ||||||||||
| 53 | |||||||||||
| 54 | =head1 LICENSE | ||||||||||
| 55 | |||||||||||
| 56 | This module is licensed under the same terms as Perl itself. | ||||||||||
| 57 | |||||||||||
| 58 | =cut | ||||||||||
| 59 | |||||||||||
| 60 | 26 | 1; | |||||||||