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