[Catalyst-commits] r13114 - Catalyst-View-TT/trunk/lib/Catalyst/View
xenoterracide at dev.catalyst.perl.org
xenoterracide at dev.catalyst.perl.org
Wed Mar 31 14:40:33 GMT 2010
Author: xenoterracide
Date: 2010-03-31 15:40:32 +0100 (Wed, 31 Mar 2010)
New Revision: 13114
Modified:
Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm
Log:
add default_view to synopsis
not setting a default_view causes the default to be random, better just to tell
people to set it. also changing MyApp to __PACKAGE__ which is the standard
convention and less confusing.
Modified: Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm
===================================================================
--- Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm 2010-03-31 10:40:38 UTC (rev 13113)
+++ Catalyst-View-TT/trunk/lib/Catalyst/View/TT.pm 2010-03-31 14:40:32 UTC (rev 13114)
@@ -28,9 +28,10 @@
# configure in lib/MyApp.pm (Could be set from configfile instead)
- MyApp->config(
- name => 'MyApp',
- root => MyApp->path_to('root'),
+ __PACKAGE__->config(
+ name => 'MyApp',
+ root => MyApp->path_to('root'),
+ default_view => 'TT',
'View::TT' => {
# any TT configurations items go here
INCLUDE_PATH => [
More information about the Catalyst-commits
mailing list