Changeset 333

Show
Ignore:
Timestamp:
03/06/06 10:24:37
Author:
miyagawa
Message:

Add "common" directory to template include path

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Template.pm

    r300 r333  
    44 
    55use FindBin; 
    6 use File::Spec
     6use File::Spec::Functions qw(catfile)
    77 
    88use Template::Provider::Encoding 0.04; 
     
    1212    my($class, $context, $plugin_class_id) = @_; 
    1313 
    14     my $path = $context->conf->{assets_path} || File::Spec->catfile($FindBin::Bin, "assets"); 
    15     my $paths = [ "$path/plugins/$plugin_class_id" ]; 
     14    my $path = $context->conf->{assets_path} || catfile($FindBin::Bin, "assets"); 
     15    my $paths = [ catfile($path, "plugins", $plugin_class_id), 
     16                  catfile($path, "common") ]; 
    1617 
    1718    return $class->SUPER::new({