Re: [htmltmpl] New Template Object based on Existing one

2004-02-09 Thread Chris Faust
Sam Said, > Interesting. I've never tried to associate one template with another > one, but I would expect it to work. Can you put together a small test > script that generates this error? > Doh!! I appear to be all set Sam.. I couldn't easily take my existing code out as an example as its sp

Re: [htmltmpl] New Template Object based on Existing one

2004-02-09 Thread Sam Tregar
On Mon, 9 Feb 2004, Chris Faust wrote: > That "associate" seemed like the way to go, when I tried that I get the H:T > error > "attempt to set parameter 'items_loop' with a scalar - parameter is not a > TMPL_VAR!" Interesting. I've never tried to associate one template with another one, but I wo

Re[2]: [htmltmpl] New Template Object based on Existing one

2004-02-09 Thread Ãîðüêèé Þðèé
Hello Chris, Monday, February 9, 2004, 5:11:34 PM, you wrote: >> It's even simpler: simply associate the first object with the second. >> #!/usr/bin/perl >> use HTML::Template; >> my $tmpl = new HTML::Template filehandle => \*DATA; >> $tmpl->param(foo => "bar"); >> print $tmpl->output; >> my $

Re: [htmltmpl] New Template Object based on Existing one

2004-02-09 Thread Chris Faust
Roger Burton West wrote: > I haven't tried this, but my first reaction is to use the usual syntax > for interrogating a template: > > $content2->param($content->param); Sébastien Aperghis-Tramoni wrote: > It's even simpler: simply associate the first object with the second. > #!/usr/bin/perl

Re: [htmltmpl] New Template Object based on Existing one

2004-02-08 Thread Sébastien Aperghis-Tramoni
Roger Burton West wrote: On Sun, Feb 08, 2004 at 12:40:45PM -0500, Chris Faust wrote: Seriously, this may be a silly or even stupid question - but is there some way to create a new template object and simply assign it all the params as a existing template object? I haven't tried this, but my fir

Re: [htmltmpl] New Template Object based on Existing one

2004-02-08 Thread Chris Faust
Thanks Roger, I'll give that a try and see what happens. -Chris - Original Message - From: "Roger Burton West" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 08, 2004 12:51 PM Subject: Re: [htmltmpl] New Template Object based on Existing o

Re: [htmltmpl] New Template Object based on Existing one

2004-02-08 Thread Roger Burton West
On Sun, Feb 08, 2004 at 12:40:45PM -0500, Chris Faust wrote: >Seriously, this may be a silly or even stupid question - but is there some way to >create a new template object and simply assign it all the params as a existing >template object? I haven't tried this, but my first reaction is to use

[htmltmpl] New Template Object based on Existing one

2004-02-08 Thread Chris Faust
Hey All,   I haven't seen a message posted since the 21st, so I wanted to make sure everything was still working :)   Seriously, this may be a silly or even stupid question - but is there some way to create a new template object and simply assign it all the params as a existing template obje