From: Tomas Doran Date: Wed, 7 Apr 2010 02:51:56 +0000 (+0000) Subject: Update helpers to be slightly more best practice X-Git-Tag: v0.34~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-TT.git;a=commitdiff_plain;h=90798082d01886e4f8ec927684d5d13c77dbaf97 Update helpers to be slightly more best practice --- diff --git a/lib/Catalyst/Helper/View/TT.pm b/lib/Catalyst/Helper/View/TT.pm index 9dc6155..9364a3e 100644 --- a/lib/Catalyst/Helper/View/TT.pm +++ b/lib/Catalyst/Helper/View/TT.pm @@ -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 diff --git a/lib/Catalyst/Helper/View/TTSite.pm b/lib/Catalyst/Helper/View/TTSite.pm index 90f9825..78f28cd 100644 --- a/lib/Catalyst/Helper/View/TTSite.pm +++ b/lib/Catalyst/Helper/View/TTSite.pm @@ -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