line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Kwiki::QuickWAFL; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
44947
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
38
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
5
|
1
|
|
|
1
|
|
758
|
use Kwiki::Plugin '-Base'; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use mixin 'Kwiki::Installer'; |
7
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
const class_title => 'QuickWAFL'; |
10
|
|
|
|
|
|
|
const class_id => 'quickwafl'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub register { |
13
|
|
|
|
|
|
|
my $registry = shift; |
14
|
|
|
|
|
|
|
if( $self->config->can('blocks') ) { |
15
|
|
|
|
|
|
|
foreach( @{$self->config->blocks}) { |
16
|
|
|
|
|
|
|
$registry->add( wafl => $_ => 'Kwiki::QuickWAFL::Block' ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
package Kwiki::QuickWAFL::Block; |
22
|
|
|
|
|
|
|
use base qw( Spoon::Formatter::WaflBlock ); |
23
|
|
|
|
|
|
|
sub contains_phrases { |
24
|
|
|
|
|
|
|
my $id = $self->formatter_id; |
25
|
|
|
|
|
|
|
[ grep {$_ ne $id} @{$self->hub->formatter->all_phrases} ]; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
sub contains_blocks { |
28
|
|
|
|
|
|
|
$self->hub->formatter->all_blocks; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package Kwiki::QuickWAFL; |
32
|
|
|
|
|
|
|
1; # End of Kwiki::QuickWAFL |
33
|
|
|
|
|
|
|
__DATA__ |