line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
###############################################################################
|
2
|
|
|
|
|
|
|
#Variable.pm
|
3
|
|
|
|
|
|
|
#Last Change: 2009-02-09
|
4
|
|
|
|
|
|
|
#Copyright (c) 2009 Marc-Seabstian "Maluku" Lucksch
|
5
|
|
|
|
|
|
|
#Version 0.4
|
6
|
|
|
|
|
|
|
####################
|
7
|
|
|
|
|
|
|
#This file is an addon to the Dotiac::DTL project.
|
8
|
|
|
|
|
|
|
#http://search.cpan.org/perldoc?Dotiac::DTL
|
9
|
|
|
|
|
|
|
#
|
10
|
|
|
|
|
|
|
#Variable.pm is published under the terms of the MIT license, which
|
11
|
|
|
|
|
|
|
#basically means "Do with it whatever you want". For more information, see the
|
12
|
|
|
|
|
|
|
#license.txt file that should be enclosed with this distribution. A copy of
|
13
|
|
|
|
|
|
|
#the license is (at the time of writing) also available at
|
14
|
|
|
|
|
|
|
#http://www.opensource.org/licenses/mit-license.php .
|
15
|
|
|
|
|
|
|
###############################################################################
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
package Dotiac::DTL::Addon::html_template::Variable;
|
19
|
11
|
|
|
11
|
|
65
|
use strict;
|
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
417
|
|
20
|
11
|
|
|
11
|
|
75
|
use warnings;
|
|
11
|
|
|
|
|
110
|
|
|
11
|
|
|
|
|
345
|
|
21
|
|
|
|
|
|
|
|
22
|
11
|
|
|
11
|
|
54
|
use base qw/Dotiac::DTL::Variable/;
|
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
2014
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
our $VERSION = 0.4;
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new {
|
28
|
182
|
|
|
182
|
1
|
250
|
my $class=shift;
|
29
|
182
|
|
|
|
|
492
|
my $self={p=>shift()};
|
30
|
182
|
|
|
|
|
507
|
bless $self,$class;
|
31
|
182
|
|
|
|
|
407
|
$self->{name}=shift;
|
32
|
182
|
|
|
|
|
270
|
$self->{filters}=shift;
|
33
|
182
|
|
|
|
|
942
|
return $self;
|
34
|
|
|
|
|
|
|
}
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub next {
|
37
|
182
|
|
|
182
|
1
|
862
|
my $self=shift;
|
38
|
182
|
|
|
|
|
508
|
$self->{n}=shift;
|
39
|
|
|
|
|
|
|
}
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1;
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__
|