[Catalyst-commits] r13133 -
Catalyst-View-TT/trunk/lib/Catalyst/Helper/View
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Wed Apr 7 02:51:56 GMT 2010
Author: t0m
Date: 2010-04-07 03:51:56 +0100 (Wed, 07 Apr 2010)
New Revision: 13133
Modified:
Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TT.pm
Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TTSite.pm
Log:
Update helpers to be slightly more best practice
Modified: Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TT.pm
===================================================================
--- Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TT.pm 2010-04-07 02:51:15 UTC (rev 13132)
+++ Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TT.pm 2010-04-07 02:51:56 UTC (rev 13133)
@@ -8,7 +8,7 @@
=head1 SYNOPSIS
- script/create.pl view TT TT
+ script/create.pl view HTML TT
=head1 DESCRIPTION
Modified: Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TTSite.pm
===================================================================
--- Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TTSite.pm 2010-04-07 02:51:15 UTC (rev 13132)
+++ Catalyst-View-TT/trunk/lib/Catalyst/Helper/View/TTSite.pm 2010-04-07 02:51:56 UTC (rev 13133)
@@ -49,7 +49,7 @@
# 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 @@
$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 @@
PRE_PROCESS => 'config/main',
WRAPPER => 'site/wrapper',
ERROR => 'error.tt2',
- TIMER => 0
+ TIMER => 0,
+ render_die => 1,
});
=head1 NAME
More information about the Catalyst-commits
mailing list