NAME
Spark::Form::Field::Role::Printable::HTML - a html4-printable form field role
SYNOPSIS
package MyApp::Form::Field::CustomText;
use Moose;
extends 'Spark::Form::Field';
with 'Spark::Form::Field::Role::Printable::HTML';
use HTML::Tiny;
sub to_html {
my ($self) = @_;
my $html = HTML::Tiny->new( mode => 'html' );
$html->input({type => 'text', value => $self->value});
}
METHODS
to_html :: Undef => Str
This function should return a html string representing your control