Updated tt view
Sebastian Riedel [Mon, 14 Nov 2005 20:57:00 +0000 (20:57 +0000)]
Changes
lib/Catalyst/Helper/View/TTSite.pm
lib/Catalyst/View/TT.pm

diff --git a/Changes b/Changes
index 9d1442a..94f5adf 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Perl extension Catalyst::View::TT.
 
+0.16  - Mon Nov 14 20:43:00 2005
+        - Updated TTSite for Catalyst 5.5
+
 0.15  - Mon Nov 14 14:43:00 2005
         - Updated for Catalyst 5.5
         - Fix docs
index b73e436..903ded8 100644 (file)
@@ -122,11 +122,12 @@ package [% class %];
 use strict;
 use base 'Catalyst::View::TT';
 
-my $root = [% app %]->config->{root};
-
 __PACKAGE__->config({
     CATALYST_VAR => 'Catalyst',
-    INCLUDE_PATH => [ "$root/src", "$root/lib" ],
+    INCLUDE_PATH => [
+        MyApp->path_to( 'root', 'src' )
+        MyApp->path_to( 'root', 'lib' )
+    ],
     PRE_PROCESS  => 'config/main',
     WRAPPER      => 'site/wrapper',
     ERROR        => 'error.tt2',
@@ -135,7 +136,7 @@ __PACKAGE__->config({
 
 =head1 NAME
 
-[% class %] - TT View Component
+[% class %] - Catalyst TTSite View
 
 =head1 SYNOPSIS
 
@@ -143,7 +144,7 @@ See L<[% app %]>
 
 =head1 DESCRIPTION
 
-TT View Component.
+Catalyst TTSite View.
 
 =head1 AUTHOR
 
@@ -151,8 +152,8 @@ TT View Component.
 
 =head1 LICENSE
 
-This library is free software . You can redistribute it and/or modify
-it under the same terms as perl itself.
+This library is free software, you can redistribute it and/or modify
+it under the same terms as Perl itself.
 
 =cut
 
index 5aede35..4547d19 100644 (file)
@@ -6,7 +6,7 @@ use Template;
 use Template::Timer;
 use NEXT;
 
-our $VERSION = '0.15';
+our $VERSION = '0.16';
 
 __PACKAGE__->mk_accessors('template');