[Catalyst] Announce: HTML::FormHandler

Bill Moseley moseley at hank.org
Tue Mar 24 17:08:06 GMT 2009


On Tue, Mar 24, 2009 at 08:38:52AM +0100, Zbigniew Lukasiak wrote:
> On Mon, Mar 23, 2009 at 9:07 PM, Gerda Shank <gs364 at cornell.edu> wrote:
> > HTML::FormHandler is an HTML form class written in Moose. It allows you to
> > define HTML form fields and validators. It can be used for both database and
> > non-database forms, and will automatically update or create rows in a
> > database.
> >
> > One of its goals is to keep the controller interface as simple as possible,
> > and to minimize the duplication of code. In most cases, interfacing your
> > controller to your form is only a few lines of code.
> >
> > You can split the pieces of your forms up into logical parts and compose
> > complete forms from FormHandler classes, roles, fields, collections of
> > validations. You can write custom methods to process forms, add any
> > attribute you like, use Moose before/after/around. FormHandler forms are
> > Perl classes, so there's a lot of flexibility in what you can do.
> >
> > http://search.cpan.org/~gshank/HTML-FormHandler-0.19/

Argh.  My apologies to Gerda.  Gerda wanted to convert Form::Processor
to Moose and had put a lot of work into it.  I couldn't get the
versions Gerda sent to me to pass the tests on the my applications
that user Form::Processor. Unfortunately, work took a higher priority
than changing method makers from Rose::Object to Moose.

I missed any discussion of a new module, and its name. I purposely
didn't use "HTML" in the module name because Form::Processor isn't
just about building HTML forms.  The existing form modules at the time
were focused (in part) on HTML generation (which I never need), but
what I needed was a way to move data in and out of the model layer via
"forms".  Indeed, my application's API use Form::Processor as well as
command line scripts -- and there's no HTML in those actions.

-- 
Bill Moseley.
moseley at hank.org
Sent from my iMutt



More information about the Catalyst mailing list