NAME
HTML::SiteTear::Root - a root object in a parent chain.
SYMPOSIS
use HTML::SiteTear::Root;
$root = HTML::SiteTear::Root->new('source_path' => $source_path,
'target_path' => $destination_path);
DESCRIPTION
An instanece of this module is for a root object in a parent chain and manage a relation tabel of all source pathes and target pathes. Also gives default folder names.
METHODS
new
$root = HTML::SiteTear::Root->new('source_path' => $source_path,
'target_path' => $destination_path);
make a new instance.
add_to_copyied_files
$item->add_to_copyied_files($source_path)
Add a file path already copied to the copiedFiles table of the root object of the parent chain.
exists_in_copied_files
$item->exists_in_copied_files($source_path)
Check existance of $source_path in the copiedFiles entry.
add_to_filemap
$root->add_to_filemap($source_path, $destination_path);
add to copyied file information into the internal table "filemap".
exists_in_filemap
$root->exists_in_filemap($source_path);
check $source_path is entry in FileMap
rel_for_mappedfile
$root->rel_for_mappedfile($source_path, $base_uri);
get relative path of copied file of $source_path from $base_uri.
SEE ALSO
HTML::SiteTear, HTML::SiteTear::Page, HTML::SiteTear::CSS, HTML::SiteTear::Root
AUTHOR
Tetsuro KURITA <tkurita@mac.com>