NAME
Spark::Form::Field::Role::Printable::XHTML - a XHTML1-printable form field role
VERSION
version 0.2102
SYNOPSIS
package MyApp::Form::Field::CustomText;
use Moose;
extends 'Spark::Form::Field';
with 'Spark::Form::Field::Role::Printable::XHTML';
use HTML::Tiny;
sub to_xhtml {
my ($self) = @_;
my $html = HTML::Tiny->new( mode => 'xml' );
$html->input({type => 'text', value => $self->value});
}
METHODS
to_xhtml :: Undef => Str
This function should return a XHTML string representing your control
SEE ALSO
AUTHOR
James Laver L<http://jameslaver.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by James Laver <sprintf qw(%s@%s.%s cpan jameslaver com)>
.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.