|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Re: Re: HTML::Template, CGI:Application and design methodologiesby Trimbach (Curate) |
| on Feb 11, 2004 at 12:55 UTC ( #328247=note: print w/ replies, xml ) | Need Help?? |
|
In the small app I'm currently working on, I create 3 or 4 template objects and print each of their outputs. Each invocation of these templates is presenting data from unrelated queries. This is just a suggestion on how this might be managed (and simplified) with one template object:
Of course you can add parameters to get_top() and get_left() to fine tune their output on a mode-by-mode basis, but by passing around one template object at a time things may become much simpler than having your program eat its tail calling one recursive mode within a mode within a mode after another. Gary Blackburn
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||