The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Spark::Form::Field::Role::Printable - Printability for form fields

VERSION

version 0.2102

DESCRIPTION

A fairly free-form module, this is mostly used for checking that it's printable at all. You probably want one of the roles under this hierarchy, but not just this one.

SYNOPSIS

 package MyApp::Field::CustomText;
 use Moose;
 extends 'Spark::Form::Field';
 with 'Spark::Form::Field::Role::Printable';

 sub to_string {
     my $self = shift;
     sprintf("%s: %s",$self->label, $self->value);
 }

VARS

label :: Str [Optional]

A label that will be printed next to said field in the printed out version

SEE ALSO

Spark::Form::Field::Printable::HTML - Role for being printable under HTML4
Spark::Form::Field::Printable::XHTML - Role for being printable under XHTML1

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.