NAME
SparkX::Form::Field::Plugin::StarML - Laziness for defining a field plugin that prints in html or xhtml depending on requirement.
SYNOPSIS
package My::Field;
use Moose;
use 'SparkX::Form::Field::Plugin::StarML';
extends 'Spark::Form::Field';
with 'SparkX::Form::Field::Plugin::StarML';
sub render {
my ($self,$html,@args) = @_;
print $html->input({type=>'text', name=>$self->name, value=>$self->value});
}
FUNCTIONS
to_xhtml () => Str
Calls your render method with an XML-printing version of HTML::Tiny
to_html () => Str
Calls your render method with a HTML-printing version of HTML::Tiny
SEE ALSO
Spark::Form - The forms module that started it all Spark::Form::Manual - The manual. Could be of assistance