line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Blosxom::Component::DataSection; |
2
|
1
|
|
|
1
|
|
978
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
4
|
1
|
|
|
1
|
|
4
|
use parent 'Blosxom::Component'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
5
|
1
|
|
|
1
|
|
44
|
use Data::Section::Simple; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
222
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( |
8
|
|
|
|
|
|
|
data_section => sub { |
9
|
|
|
|
|
|
|
my $class = shift; |
10
|
|
|
|
|
|
|
Data::Section::Simple->new($class)->get_data_section; |
11
|
|
|
|
|
|
|
}, |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
0
|
1
|
|
sub get_data_section { $_[0]->data_section->{$_[1]} } |
15
|
0
|
|
|
0
|
1
|
|
sub data_section_names { keys %{ $_[0]->data_section } } |
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub merge_data_section_into { |
18
|
0
|
|
|
0
|
1
|
|
my ( $class, $merge_into ) = @_; |
19
|
0
|
|
|
|
|
|
while ( my ($basename, $template) = each %{ $class->data_section } ) { |
|
0
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my ( $chunk, $flavour ) = $basename =~ /(.*)\.([^.]*)/; |
21
|
0
|
|
|
|
|
|
$merge_into->{ $flavour }{ $chunk } = $template; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |