GT::Template::Inheritance - Provides class methods to deal with template inheritance.
use GT::Template::Inheritance;
my $file = GT::Template::Inheritance->get_path(
file => "foo.htm",
path => "/path/to/my/template/set",
use_local => 1,
use_inheritance => 1
);
my @files = GT::Template::Inheritance->get_all_paths(
file => "foo.htm",
path => "/path/to/my/template/set",
use_local => 1,
use_inheritance => 1,
local_inheritance => 1
);
GT::Template::Inheritance is a simple module with nothing but class methods to return the path or paths to files following template inheritace files and locals. See the GT::Template manpage for a description of how inheritance and locals works.
All methods in GT::Template::Inheritance are class methods. Each method takes a hash of options as an argument.
This method returns the path to the proper file given options. The options are given in the form of a hash.
The following options are required.
The following options are not required. If omitted default to on.
path you provided.
This method returns all files it finds while looking through inheritance and or locals.
The following options are required.
The following options are not required.
use_inheritance. Only applies to get_all_paths(),
not get_path().
Jason Rhinelander
Copyright (c) 2004 Gossamer Threads Inc. All Rights Reserved. http://www.gossamer-threads.com/
Revision: $Id: Inheritance.pm,v 1.5 2004/05/04 01:41:01 jagerman Exp $