Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Printer stuff

  • Loading branch information...
commit f2923cebd49d35aa00aefa2a5fb350e839aaebc2 1 parent 39d819a
James authored
View
3  MANIFEST
@@ -8,6 +8,9 @@ lib/Spark/Form/Field/Role/Printable.pm
lib/Spark/Form/Field/Role/Printable/HTML.pm
lib/Spark/Form/Field/Role/Printable/XHTML.pm
lib/Spark/Form/Field/Role/Validateable.pm
+lib/Spark/Form/Printer.pm
+lib/Spark/Form/Printer/HTML.pm
+lib/Spark/Form/Printer/XHTML.pm
lib/Spark/Form/Source.pm
MANIFEST This list of files
Printable.pm
View
17 lib/Spark/Form/Printer.pm
@@ -0,0 +1,17 @@
+package Spark::Form::Printer;
+
+use Moose::Role;
+
+1;
+__END__
+
+=head1 NAME
+
+Spark::Form::Printer - interface for form printers for C<Spark::Form>
+
+=head1 SEE ALSO
+
+L<Spark::Form> - the forms module that started it all
+L<Spark::Form::BasicPrinters> - set of pre-canned printers for your forms
+
+=cut
View
20 lib/Spark/Form/Printer/HTML.pm
@@ -0,0 +1,20 @@
+package Spark::Form::Printer::HTML;
+
+use Moose::Role;
+with 'Spark::Form::Printer';
+
+requires 'to_html';
+
+1;
+__END__
+
+=head1 NAME
+
+Spark::Form::Printer::HTML - the interface a HTML-printing form printer needs to implement
+
+=head1 SEE ALSO
+
+L<Spark::Form> - The forms module that started it all
+L<SparkX::Form::BasicPrinters> - Set of pre-canned form printers
+
+=cut
View
20 lib/Spark/Form/Printer/XHTML.pm
@@ -0,0 +1,20 @@
+package Spark::Form::Printer::XHTML;
+
+use Moose::Role;
+with 'Spark::Form::Printer';
+
+requires 'to_xhtml';
+
+1;
+__END__
+
+=head1 NAME
+
+Spark::Form::Printer::HTML - the interface an XHTML-printing form printer needs to implement
+
+=head1 SEE ALSO
+
+L<Spark::Form> - The forms module that started it all
+L<SparkX::Form::BasicPrinters> - Set of pre-canned form printers
+
+=cut
Please sign in to comment.
Something went wrong with that request. Please try again.