Re: [cgiapp] global html template tokens

2002-03-21 Thread Eric Moore
Mark, many thanks. Wow! I've gone over this several times. Learned a number of things in the process. Again, thanks. Eric. > If you want to do is to have the same global configuration variables > available in all your > templates you use with CGI::Application, you might want to override t

Re: [cgiapp] global html template tokens

2002-03-21 Thread Mark Stosberg
Eric Moore wrote: > > In the past, I have done what Cory outlines > > > From: "Cory Trese" <[EMAIL PROTECTED]> > >>> SNIP >> > > > > # install global variable values from config file > > $service_name = %conf->{'service_name'}; > > $service_url = %conf->{'service_url'}; > > $session_life = %conf

Re: [cgiapp] Config::Simple

2002-03-21 Thread Sam Tregar
On Thu, 21 Mar 2002, Eric Moore wrote: > in HTML::Template by doing > > while( ( $key, $value ) = each( %$conf ) ){ > $template->param( $key => $value ); > } Psst - you can do that much easier with: $template->param($conf); Since param() can take a hash-ref of parameter se

Re: [cgiapp] Config::Simple

2002-03-21 Thread Eric Moore
In the past, I have done what Cory outlines > From: "Cory Trese" <[EMAIL PROTECTED]> >>> SNIP >> > > # install global variable values from config file > $service_name = %conf->{'service_name'}; > $service_url = %conf->{'service_url'}; > $session_life = %conf->{'session_life'}; > $session_context