hesco has asked for the wisdom of the Perl Monks concerning the following question:
The CGI::FormBuilder perldoc suggests using something like this:
in the html.tmpl file. But I need something more like:<p>Your email address: <tmpl_var field-email>
With the person#### codes being used to interact with the database on the processing side of things. And a bunch of other fields included in each fieldset.<fieldset class="fb_set" id="person0798"> <p>Your email address: <tmpl_var field-person0798_email> </fieldset> <fieldset class="fb_set" id="person8635"> <p>Your email address: <tmpl_var field-person8635_email> </fieldset> <fieldset class="fb_set" id="person3248"> <p>Your email address: <tmpl_var field-person3248_email> </fieldset>
I see no example in the CGI::FormBuilder perldoc of use'ing HTML::Template. Nor of instantiating a $template object, which I'm assuming may all be handled inside the CGI::FormBuilder module, but that is just a guess. I certainly see nothing of the $template->methods which permit passing data to the template. Am I limited only to pass field definitions? And if so, how do I account for these fieldsets of uniquely identified sets of fields?
Am I missing something here?
Confused on how to proceed,
-- Hugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Questions on how to use CGI::FormBuilder and HTML::Template together.
by Anonymous Monk on Jun 06, 2008 at 08:55 UTC | |
|
Re: Questions on how to use CGI::FormBuilder and HTML::Template together.
by monarch (Priest) on Jun 06, 2008 at 11:07 UTC | |
|
Re: Questions on how to use CGI::FormBuilder and HTML::Template together.
by Anonymous Monk on Jun 06, 2008 at 08:51 UTC |