line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MojoMojo::Formatter::File::Pod; |
2
|
|
|
|
|
|
|
|
3
|
26
|
|
|
26
|
|
14556
|
use parent qw/MojoMojo::Formatter/; |
|
26
|
|
|
|
|
68
|
|
|
26
|
|
|
|
|
140
|
|
4
|
|
|
|
|
|
|
|
5
|
26
|
|
|
26
|
|
1510
|
use MojoMojo::Formatter::Pod; |
|
26
|
|
|
|
|
63
|
|
|
26
|
|
|
|
|
317
|
|
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
|
|
|
|
|
|
|
sub can_format { |
26
|
2
|
|
|
2
|
1
|
5
|
my $self = shift; |
27
|
2
|
|
|
|
|
5
|
my $type = shift; |
28
|
|
|
|
|
|
|
|
29
|
2
|
100
|
|
|
|
9
|
return 1 if ( $type eq "pod" ); |
30
|
1
|
|
|
|
|
4
|
return 0; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item to_xhtml |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
takes Pod text and renders it as XHTML. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub to_xhtml { |
41
|
1
|
|
|
1
|
1
|
4
|
my ( $self, $text ) = @_; |
42
|
1
|
|
|
|
|
2
|
my $result; |
43
|
1
|
|
|
|
|
11
|
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
|
|
|
|
|
|
|
1; |