Re: [htmltmpl] Re: Patches for HTML-Template-2.5.tar.gz
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2002-07-25 06:09:41
|
On Thu, 25 Jul 2002, Philip S Tellis wrote: > What I would really like to see though is a <tmpl_elseif> and > <tmpl_elseunless>. That would really clean up some of my templates that > have too many nested ifs. Mmm.. I've considered it at various points. Each time I decide it would only encourage more complicated logic in the templates. I'm still leaning in that direction although I will admit it's a close call. > It would specially make sense with multi state scripts that need to show > a different body after every step of a form processing, but a lot of > common stuff. I tend to use <tmpl_incldue> with a header.tmpl and a footer.tmpl to deal with that kind of a situation. > (Is this what CGI::Application does?) CGI::Application is a state-management system for CGI is mostly CGI::template-system agnostic. You could use it with a single template for all run-modes or with a template for each. -sam |