Update helpers to be slightly more best practice
Tomas Doran [Wed, 7 Apr 2010 02:51:56 +0000 (02:51 +0000)]
lib/Catalyst/Helper/View/TT.pm
lib/Catalyst/Helper/View/TTSite.pm

index 9dc6155..9364a3e 100644 (file)
@@ -8,7 +8,7 @@ Catalyst::Helper::View::TT - Helper for TT Views
 
 =head1 SYNOPSIS
 
-    script/create.pl view TT TT
+    script/create.pl view HTML TT
 
 =head1 DESCRIPTION
 
index 90f9825..78f28cd 100644 (file)
@@ -49,7 +49,7 @@ Catalyst::Helper::View::TTSite - Helper for TT view which builds a skeleton web
 
 # use the helper to create the view module and templates
 
-    $ script/myapp_create.pl view TT TTSite
+    $ script/myapp_create.pl view HTML TTSite
 
 # add something like the following to your main application module
 
@@ -64,9 +64,9 @@ Catalyst::Helper::View::TTSite - Helper for TT view which builds a skeleton web
         $c->stash->{template} = 'welcome.tt2';
     }
 
-    sub end : Private {
+    sub end : Private { # Or use Catalyst::Action::RenderView
         my ( $self, $c ) = @_;
-        $c->forward( $c->view('TT') );
+        $c->forward( $c->view('HTML') );
     }
 
 =head1 DESCRIPTION
@@ -166,7 +166,8 @@ __PACKAGE__->config({
     PRE_PROCESS  => 'config/main',
     WRAPPER      => 'site/wrapper',
     ERROR        => 'error.tt2',
-    TIMER        => 0
+    TIMER        => 0,
+    render_die   => 1,
 });
 
 =head1 NAME