[Catalyst-commits] r11799 - Catalyst-View-TT/branches/render_die/lib/Catalyst/View

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Thu Nov 12 00:31:27 GMT 2009


Author: t0m
Date: 2009-11-12 00:31:26 +0000 (Thu, 12 Nov 2009)
New Revision: 11799

Modified:
   Catalyst-View-TT/branches/render_die/lib/Catalyst/View/TT.pm
Log:
Back out 11797 - misscommit to wrong branch. svn merge -r11797:11796 .

Modified: Catalyst-View-TT/branches/render_die/lib/Catalyst/View/TT.pm
===================================================================
--- Catalyst-View-TT/branches/render_die/lib/Catalyst/View/TT.pm	2009-11-12 00:22:06 UTC (rev 11798)
+++ Catalyst-View-TT/branches/render_die/lib/Catalyst/View/TT.pm	2009-11-12 00:31:26 UTC (rev 11799)
@@ -300,38 +300,6 @@
         $c->forward( $c->view('TT') );
     }
 
-But if you are using the standard auto-generated end action, you don't even need
-to do this!
-
-    # in MyApp::Controller::Root
-    sub end : ActionClass('RenderView') {} # no need to change this line
-
-    # in MyApp.pm
-    __PACKAGE__->config(
-        ...
-        default_view => 'TT',
-    );
-
-This will Just Work.  And it has the advantages that:
-
-=over 4
-
-=item *
-
-If you want to use a different view for a given request, just set 
-<< $c->stash->{current_view} >>.  (See L<Catalyst>'s C<< $c->view >> method
-for details.
-
-=item *
-
-<< $c->res->redirect >> is handled by default.  If you just forward to 
-C<View::TT> in your C<end> routine, you could break this by sending additional
-content.
-
-=back
-
-See L<Catalyst::Action::RenderView> for more details.
-
 =head2 CONFIGURATION
 
 There are a three different ways to configure your view class.  The




More information about the Catalyst-commits mailing list