Re: [Catalyst] Forward to view question

2009-05-11 Thread Matt S Trout
On Tue, May 05, 2009 at 10:54:17AM -0400, Dennis Daupert wrote: > I've created a view that's intended to write a couple of files to the file > system. > > The output filename needs to be dynamically set. I'm having a bit of a go > figuring out how to do that. > > The TT configuration documentatio

Re: [Catalyst] Forward to view question

2009-05-06 Thread Dennis Daupert
On Wed, May 6, 2009 at 5:28 PM, Andrew Rodland wrote: > > In that example you don't *have* a View::TTprint. Or if you do, it's just > another subclas of C::V::TT with a different config and search path. No > overloading, no OUTPUT. You forward to the view, it writes into > $c->res->body > like it

Re: [Catalyst] Forward to view question

2009-05-06 Thread Andrew Rodland
On Wednesday 06 May 2009 09:01:43 am Dennis Daupert wrote: > On Tue, May 5, 2009 at 7:24 PM, Tomas Doran wrote: > > my $output = delete $c->res->{body}; > > opem(FH, ">file") or die; > > print FH $output; > > close(FH); > > > > will do what you want... > There are some things that aren't so obvio

Re: [Catalyst] Forward to view question

2009-05-06 Thread Dennis Daupert
On Tue, May 5, 2009 at 7:24 PM, Tomas Doran wrote: > > Sorry for pointing out the obvious, but this is just perl: > > my $output = delete $c->res->{body}; > opem(FH, ">file") or die; > print FH $output; > close(FH); > > will do what you want... Hi Tom, Thanks for your reply. There are some th

Re: [Catalyst] Forward to view question

2009-05-05 Thread Tomas Doran
On 5 May 2009, at 20:19, Dennis Daupert wrote: I just got your post, plugged it in, got an error. I'll need to play with this a bit, Sorry for pointing out the obvious, but this is just perl: my $output = delete $c->res->{body}; opem(FH, ">file") or die; print FH $output; close(FH); wil

Re: [Catalyst] Forward to view question

2009-05-05 Thread Dennis Daupert
On Tue, May 5, 2009 at 1:59 PM, Andrew Rodland wrote: > > some code > > Andrew > Hi Andrew, I just got your post, plugged it in, got an error. I'll need to play with this a bit, but have an appointment, so will try later. I really appreciate the info. /dennis ___

Re: [Catalyst] Forward to view question

2009-05-05 Thread Andrew Rodland
On Tuesday 05 May 2009 09:54:17 am Dennis Daupert wrote: > I've created a view that's intended to write a couple of files to the file > system. > > The output filename needs to be dynamically set. I'm having a bit of a go > figuring out how to do that. > > The TT configuration documentation speaks

[Catalyst] Forward to view question

2009-05-05 Thread Dennis Daupert
I've created a view that's intended to write a couple of files to the file system. The output filename needs to be dynamically set. I'm having a bit of a go figuring out how to do that. The TT configuration documentation speaks of an output subroutine: OUTPUT => \&output, Later on in the view b