line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Plugin::DisableForm; |
2
|
2
|
|
|
2
|
|
82346
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
86
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
78
|
|
4
|
2
|
|
|
2
|
|
15
|
use base qw(Template::Plugin::Filter); |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
1828
|
|
5
|
2
|
|
|
2
|
|
10505
|
use HTML::DisableForm; |
|
2
|
|
|
|
|
15162
|
|
|
2
|
|
|
|
|
250
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = 0.01; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
1
|
|
|
1
|
1
|
58
|
my $self = shift; |
11
|
1
|
|
|
|
|
10
|
$self->{_DYNAMIC} = 1; |
12
|
1
|
|
50
|
|
|
14
|
$self->install_filter($self->{_ARGS}->[0] || 'disable_form'); |
13
|
1
|
|
|
|
|
40
|
$self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub filter { |
17
|
1
|
|
|
1
|
1
|
76
|
my ($self, $text, $args, $config) = @_; |
18
|
1
|
|
|
|
|
3
|
my $df = HTML::DisableForm->new; |
19
|
1
|
|
|
|
|
61
|
return $df->disable_form(scalarref => \$text, %$config); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |