TurboForm/Element/Html.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 29 CC 3 SCAR 18.4
CC
3
Cov
0%
render
12.0
get_dbix
2.0
BEGIN
2.0
CRAP 6.3
1 package HTML::TurboForm::Element::Html;
2 use warnings;
3 use strict;
4 use base qw(HTML::TurboForm::Element);
5 __PACKAGE__->mk_accessors( qw/ pure / );
6  
7 sub render {
8 my ($self, $options, $view)=@_;
9 if ($view) { $self->{view}=$view; }
10  
11 return $self->{text} if ($self->{pure});
12 return $self->vor($options).$self->{text}.$self->nach;
13 }
14  
15 sub get_dbix{
16 my ($self)=@_;
17 return 0;
18 }
19  
20 1;
21  
22  
23 __END__