blib/lib/Template/Plugin/Textile.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 16 | 18 | 88.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Template::Plugin::Textile; | ||||||
2 | |||||||
3 | 1 | 1 | 111931 | use strict; | |||
1 | 2 | ||||||
1 | 43 | ||||||
4 | #use warnings; | ||||||
5 | |||||||
6 | 1 | 1 | 7 | use vars qw($VERSION); | |||
1 | 2 | ||||||
1 | 58 | ||||||
7 | $VERSION = "2.02"; | ||||||
8 | |||||||
9 | 1 | 1 | 20 | use Text::Textile; | |||
1 | 3 | ||||||
1 | 144 | ||||||
10 | |||||||
11 | 3 | 3 | 0 | 16805 | sub load { return $_[0] } | ||
12 | 3 | 3 | 0 | 65 | sub new { return bless {}, $_[0] } | ||
13 | |||||||
14 | $Template::Filters::FILTERS->{textile} | ||||||
15 | = sub { Text::Textile::textile($_[0]) }; | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |