[htmltmpl] One-time evaluation (was conditional include)

2005-01-07 Thread Mark Fuller
From: "Sam Tregar" <[EMAIL PROTECTED]> > Are you sure it needs to happen "only once"? Your example doesn't > support that meaning. In your example the language-specific stuff > needs to change when the language changes. Sam. First, thank you for your consideration. I only load a template for a

Re: [htmltmpl] RFC: Conditional TMPL_INCLUDE

2005-01-07 Thread Sam Tregar
On Fri, 7 Jan 2005, Mark Fuller wrote: > > Why? I still haven't heard a compelling use-case aside from dynamic > > includes which I think can be handled in better ways. > > Ooops. We're talking about two different things. What I said above concerns > evaluation of a template which needs to be pe

Re: [htmltmpl] RFC: Conditional TMPL_INCLUDE

2005-01-07 Thread Mark Fuller
Matthew, I second Keith's request. Your feature to a variable-substituted filename would be valuable to me. But, I'm not comfortable departing from H::T. Sam, I'm not a big object guy. Subclassing H::T is probably beyond my capability. However, if you think it would be useful to have a "persist

Re: [htmltmpl] RFC: Conditional TMPL_INCLUDE

2005-01-07 Thread Mark Fuller
From: "Sam Tregar" <[EMAIL PROTECTED]> > On Fri, 7 Jan 2005, Mark Fuller wrote: > > However, if you think it would be useful to have a "persistent evaluation" > > of the *cached* template (so that the partially-evaluated template is > > returned with each subsequent "new" method calls), I hope you

Re: [htmltmpl] RFC: Conditional TMPL_INCLUDE

2005-01-07 Thread Sam Tregar
On Fri, 7 Jan 2005, Mark Fuller wrote: > I'm not a big object guy. Subclassing H::T is probably beyond my capability. I doubt that. Give it a try. If you have trouble, post here and I'll be happy to give you a hand. If you have no idea where to start I'd suggest picking up Damian Conway's "Obj

[htmltmpl] Re: In praise of HTML::Template and a request for mini-enhancement

2005-01-07 Thread Sam Tregar
On Fri, 7 Jan 2005, CUMMING, Joe, FM wrote: > The one place which HTML::Template frustrated me was it's "non-support" of > CDBI. After, all cdbi objects are hashes under the covers and cdbi iterators > are arrays, why can't I then pass them to HTML::Template in the way you > would expect? Because