Fixed TTSite helper to use correct app name
Andy Grundman [Fri, 18 Nov 2005 14:38:05 +0000 (14:38 +0000)]
Changes
lib/Catalyst/Helper/View/TTSite.pm

diff --git a/Changes b/Changes
index b0fb54b..303e5bc 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,6 +2,7 @@ Revision history for Perl extension Catalyst::View::TT.
 
 0.20
         - Added tests. (Daniel Westermann-Clark)
+        - Fixed TTSite helper to use correct app name.
 
 0.19  - Tue Nov 15 09:52:00 2005
         - unbreak config.
index 903ded8..745fc3f 100644 (file)
@@ -125,8 +125,8 @@ use base 'Catalyst::View::TT';
 __PACKAGE__->config({
     CATALYST_VAR => 'Catalyst',
     INCLUDE_PATH => [
-        MyApp->path_to( 'root', 'src' )
-        MyApp->path_to( 'root', 'lib' )
+        [% app %]->path_to( 'root', 'src' ),
+        [% app %]->path_to( 'root', 'lib' )
     ],
     PRE_PROCESS  => 'config/main',
     WRAPPER      => 'site/wrapper',