Changeset 95 in bookmarks for trunk/lib


Ignore:
Timestamp:
06/06/15 00:18:21 (9 years ago)
Author:
peter
Message:

moved the template files into the lib/Bookmarks directory

Location:
trunk/lib/Bookmarks
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/Bookmarks/Controller.pm

    r91 r95  
    147147        } else { 
    148148            # display the bookmark form for this bookmark 
    149             my $template = Template->new; 
     149            require File::Basename; 
     150            my $template = Template->new({ INCLUDE_PATH => File::Basename::dirname($INC{'Bookmarks/Controller.pm'}) }); 
    150151            $template->process( 
    151152                'bookmark.tt', 
  • trunk/lib/Bookmarks/List.pm

    r91 r95  
    179179 
    180180    require Template; 
    181     my $template = Template->new; 
     181    require File::Basename; 
     182    my $template = Template->new({ INCLUDE_PATH => File::Basename::dirname($INC{'Bookmarks/List.pm'}) }); 
    182183 
    183184    my @all_tags = $self->bookmarks->get_tags({ selected => @{ $self->tags }[0] }); 
Note: See TracChangeset for help on using the changeset viewer.