On Wed, 27 Jan 2021 17:18:47 +0000
"Morse, Richard E.,MGH" <remo...@mgh.harvard.edu> wrote:

> Hi! The various templating systems don't seem to be very useful for
> dealing with generating HTML forms that already have data in them,
> especially if some of the form needs to be generated programatically.
> What do people use for this instead?

The forms generated by Dancer::Plugin::SimpleCRUD use CGI::FormBuilder,
which, whilst pretty old, is powerful and works well.

Ignore the "CGI" part of its name, it can work perfectly well in Dancer
apps too by feeling it a fake CGI object that implements a param()
method - see the start of D::P::SimpleCRUD for an example.  (In fact,
it would be nice for CGI::FormBuilder to support being just given a
hashref of params, rather than that somewhat kludgy workaround - I may
look at that if I find a spare tuit or two.)

There's also HTML::FormFu you could look at.

Cheers

Dave P (BIGPRESH)

_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to