[Catalyst] An initial version of a form rendering and validation module

Bernard FRIT bernard.frit at gmail.com
Tue Nov 22 15:45:40 CET 2005


Andrew,

2005/11/22, Andrew Ford <A.Ford at ford-mason.co.uk>:

> Given that the module works with Catalyst I am making a first
> announcement of version 0.04 here.  The source code is available from:
>
>     http://andrew-ford.com/perl/cgi-formmanager/

Thanks for your release.

>     This is what our form definition might look like:
>
>       my $form_defn = {
>           options    => { method => 'POST',
>                           action => $url,
>                         },
>           elements   => [ '<h2>Your login credentials</h2>',
>                           cfm_text_field( name       => 'email',
>                                           label      => 'Email address',
>                           ...
>
>                         ],
>           validation => { required => [ qw(email password) ],
>                           constraint_methods => {
>                               email => email(),
>                           },
>                         },
>       };

Do you think that form definition data could be reasonably loaded from
say a YAML file or whatever in the flavor of formbuilder source
directive?

--
Bernard FRIT



More information about the Catalyst mailing list