Re: [htmltmpl] Re: Patches for HTML-Template-2.5.tar.gz
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2002-07-25 16:35:32
|
On Thu, 25 Jul 2002, Brian McCain wrote: > | 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. > [snip] > > Maybe in HTML::Template::Expr? > Just a thought. I think that's unlikely to work out. Adding <tmpl_elseif> would require some fairly radical changes to the parser. HTML::Template::Expr just uses HTML::Template's parser and isn't really in the right place to implement something like that. -sam |