On Tue, May 22, 2007 at 11:38:03AM +0100, Adeola Awoyemi wrote:
> Hi all,
> 
> I have a template (page.tt2) that uses TT's VIEW directive, where I'm  
> making a sub-request:
> 
> [% BLOCK feed;
>        data = Catalyst.subreq("/feed/$feed_url");
>        data;
>    END;
> %]
> 
> In my controller:
> 
> sub get_feed : LocalRegex('^(.*$) ) {
>     my ( $self, $c );
>     my $src_url = $c->request->captures->[0];
>     my $content = get($src_url); # already USE(ing) LWP::Simple above
>     $c->stash->{source_string} = $content;
>     $c->stash->{template} = 'feed.tt2';
> }
> 
> But instead of a return of the results of running the source through  
> the feed.tt2 template I get an error "file error - recursion into  
> 'page.tt2'".

Add RECURSION => 1 to your View::TT config.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to