ok, that works thanks (as does the server side wget).

2008/6/23 Kieren Diment <[EMAIL PROTECTED]>:

> On 23 Jun 2008, at 21:45, Martin Ellison wrote:
>
>  Sorry, bit of a newbie question: is there any way that I can run an action
>> but capture the results (server-side) to a file? Doing so client side is
>> easy (eg wget) but I want to keep the page text on the server and to
>> automate the page generation/save.
>>
>>
> From Catalyst::View::TT:
>
>     render($c, $template, \%args)
>
> Renders the given template and returns output, or a Template::Exception
>   object upon error.     ...
>
> so:
>
> my $var = $c->render($template, \%args);
> my $file = '/what/ever.html';
> print $FH, ">", $file;
>
>
> _______________________________________________
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- 
Regards,
Martin
([EMAIL PROTECTED])
IT: http://methodsupport.com Personal: http://thereisnoend.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to