Re: [cgiapp] clueless on the callback for load_tmpl

2007-02-21 Thread Rhesa Rozendaal
Robert Hicks wrote: I have never done a callback before so I used GOOGLE to search for a way to get some globals setup for my webapp. Start with the cgiapp documentation, and have a look at a recent Perlmonks reply I wrote: http://perlmonks.org/?node_id=598520 It's not as hard as it looks. T

Re: [cgiapp] clueless on the callback for load_tmpl

2007-02-21 Thread Michael Peters
Robert Hicks wrote: > I have never done a callback before so I used GOOGLE to search for a way > to get some globals setup for my webapp. > > I tried the following thinking it would "override" the current load_tmpl: > > sub load_tmpl { > my ($self, $tmpl_file, @extra_params) = @_; > >

[cgiapp] clueless on the callback for load_tmpl

2007-02-21 Thread Robert Hicks
I have never done a callback before so I used GOOGLE to search for a way to get some globals setup for my webapp. I tried the following thinking it would "override" the current load_tmpl: sub load_tmpl { my ($self, $tmpl_file, @extra_params) = @_; # die_on_bad_params goes to "0" in pro