| 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__ |