prepared for ::View::TTT 0.20
Marcus Ramberg [Mon, 12 Dec 2005 09:34:29 +0000 (09:34 +0000)]
Changes
META.yml
lib/Catalyst/View/TT.pm

diff --git a/Changes b/Changes
index 303e5bc..780967b 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,7 @@ Revision history for Perl extension Catalyst::View::TT.
 0.20
         - Added tests. (Daniel Westermann-Clark)
         - Fixed TTSite helper to use correct app name.
+        - Added support for dynamic includes.
 
 0.19  - Tue Nov 15 09:52:00 2005
         - unbreak config.
index 847646a..6f35211 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,11 +1,12 @@
 # http://module-build.sourceforge.net/META-spec.html
 #XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
 name:         Catalyst-View-TT
-version:      0.19
+version:      0.20
 version_from: lib/Catalyst/View/TT.pm
 installdirs:  site
 requires:
     Catalyst:                      5.5
+    Path::Class:                   0
     Template:                      0
     Template::Timer:               0
 
index d49cfd3..4e8f685 100644 (file)
@@ -233,7 +233,7 @@ and reads the application config.
 
 =cut
 
-sub coerce_paths {
+sub _coerce_paths {
     my ( $paths, $dlim ) = shift;
     return () if ( ! $paths );
     return @{$paths} if ( ref $paths eq 'ARRAY');
@@ -250,9 +250,9 @@ sub coerce_paths {
 sub new {
     my ( $class, $c, $arguments ) = @_;
     my $delim = $class->config->{DELIMITER} || $arguments->{DELIMITER};
-    my @include_path = coerce_paths($arguments->{INCLUDE_PATH}, $delim); 
+    my @include_path = _coerce_paths($arguments->{INCLUDE_PATH}, $delim); 
     if(!@include_path){
-        @include_path = coerce_paths($class->config->{INCLUDE_PATH}, $delim);
+        @include_path = _coerce_paths($class->config->{INCLUDE_PATH}, $delim);
     }
     if(!@include_path){
         my $root = $c->config->{root};