Peter:
I suspect that 15 minutes running, examining and adapting the tests I
left in this
module might would show you some hope for accomplishing your goal
here.
Take a look at:
t/10-formbuilder.t
in the CGI::FormBuilder::Config::Simple package.
It is producing a fieldset. The configuration file has left the
template commented
out, but when we deployed this in a production environment, that was
not the case.
We had a template file (HTML::Template or tt2, can't remember, but I
use one of
those two from time to time).
The only thing this does is collapse the form building logic into an
ini file
(or whatever format you prefer which can be read by Config::Simple).
Once that is done, this call:
$self->render_web_form('signup_form',$debug_level)
renders your html (w/ js, css and whatever else you include in your
template).
It also handles the data validation work. All you have to do is write
any
methods to handle validation more complicated than a regex, plus the
code to process and store your incoming data.
You can have your fieldsets and templates too.
-- Hugh Esco