bump VERSION to 0.45
[catagits/Catalyst-View-TT.git] / lib / Catalyst / Helper / View / TTSite.pm
index 90f9825..ec00594 100644 (file)
@@ -3,6 +3,9 @@ package Catalyst::Helper::View::TTSite;
 use strict;
 use File::Spec;
 
+our $VERSION = '0.45';
+$VERSION = eval $VERSION;
+
 sub mk_compclass {
     my ( $self, $helper, @args ) = @_;
     my $file = $helper->{file};
@@ -49,7 +52,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 +67,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
@@ -118,7 +121,7 @@ the following templates are processed in order:
 
 =back
 
-Finally, the rendered content is returned to the bowser.
+Finally, the rendered content is returned to the browser.
 
 =head1 METHODS
 
@@ -166,7 +169,8 @@ __PACKAGE__->config({
     PRE_PROCESS  => 'config/main',
     WRAPPER      => 'site/wrapper',
     ERROR        => 'error.tt2',
-    TIMER        => 0
+    TIMER        => 0,
+    render_die   => 1,
 });
 
 =head1 NAME