On Oct 21, 2004, at 11:41 AM, Robert wrote:

Do I need to stuff the results of that while loop into a "return" statement
or can I just call the following in my application script:


my $page_content = WebDB::attu_all();

Nope. This definitely won't work. You will probably need to read a bit about using subroutines, as CGI::App is built on passing values around between subroutines.


$template->param( CONTENT => $page_content, );

This won't either.

I'm not sure at what point you are in developing your cgiApp application--not very far? If you are using your print statements to generate HTML, then you just need to put all of that into one large string and return that from your run_mode. CGI::App will just plop it on the page. Using HTML::Template is different in that you generate values that are then plugged into the template. You probably need to look at HTML::Template documentation a bit more.

Sean


--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to