Re: [htmltmpl] new work on HTML::Template
Brought to you by:
samtregar
From: Lyle <web...@co...> - 2011-04-07 01:03:54
|
On 07/04/2011 01:41, Brad Baxter wrote: > On Wed, Apr 6, 2011 at 8:28 PM, Lyle<web...@co...> wrote: >> For further clarification, and without looking at the H::T implementation. >> You are calling it an object because in the sense of the term 'object' the >> template is an object. But, it's not a Perl object, which is likely where >> further confusion comes from. > Yes, it is a Perl object. A "template" is a bunch of text. Depends how abstract you want to look at things, many things are an object in the right context :) > An HTML::Template > object is a Perl object ... I see how you are visualising it now. I should probably have a looked at the implementation before posting that last message. I've now seen the HTML::Template::LOOP class, etc. I think for anyone who's just used the module and hasn't gone though it's internal code, it's clearer to talk about it in the sense of variable scoping; as the loops are easily interpreted as Perl blocks. Thanks for clearing up the confusion :) Lyle |