X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper%2FView%2FTTSite.pm;h=ec00594a7b240f28f9cfe650fecc1b00ebbfcbc0;hb=caa68319afbd7b8db59975b1e968766da6ac6bbc;hp=90f9825d3070a834973850f367e2f251276eaf87;hpb=8544227a936232349256e0a16255f77f309741a1;p=catagits%2FCatalyst-View-TT.git diff --git a/lib/Catalyst/Helper/View/TTSite.pm b/lib/Catalyst/Helper/View/TTSite.pm index 90f9825..ec00594 100644 --- a/lib/Catalyst/Helper/View/TTSite.pm +++ b/lib/Catalyst/Helper/View/TTSite.pm @@ -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