> > I am just starting out using CGI::Application and would like to > see an example of how to call HTML::Template and pass it param's? > > I was also looking for a cgiapp list archive that I could search > to see if anyone else may have posted this and gotten a response. > Is there a web based archive? > > The following code gives me > > HTML::Template=HASH(0x822f464) > > When I access www.securitysaint.com/cgi-bin/saint.cgi > > > sub show_main { > my $self = shift; > > # Get CGI query object > my $q = $self->query(); > > my $tmpl_obj = $self->load_tmpl('main.tmpl'); > > my $output = ''; > > $tmpl_obj->param(HOME => $ENV{HOME}); > $tmpl_obj->param(PATH => $ENV{PATH}); > > $output .= $tmpl_obj; > return $output; > > } > > Any pointer in the right direction would be helpful. > > Thanks > zack
It should be $output .= $tmpl_obj->output; Roy Irubin Consulting http://www.irubin.com --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]