Re: new work on HTML::Template
Lyle <[email protected]> Thu, 07 Apr 2011 02:03:46 +0100
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
On 07/04/2011 01:41, Brad Baxter wrote: > On Wed, Apr 6, 2011 at 8:28 PM, Lyle<[email protected]> 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 ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev