HTML::SiteTear::Root - a root object in a parent chain.
use HTML::SiteTear::Root; $root = HTML::SiteTear::Root->new('source_path' => $source_path, 'target_path' => $destination_path);
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.
$root = HTML::SiteTear::Root->new('source_path' => $source_path, 'target_path' => $destination_path);
make a new instance.
$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.
$item->exists_in_copied_files($source_path)
Check existance of $source_path in the copiedFiles entry.
$root->add_to_filemap($source_path, $destination_uri);
Add to copyied file information into the internal table "filemap". A fragment of $destination_uri is dropped.
$root->exists_in_filemap($source_path);
check $source_path is entry in FileMap
$root->rel_for_mappedfile($source_path, $base_uri);
get relative URI of copied file of $source_path from $base_uri.
HTML::SiteTear, HTML::SiteTear::Page, HTML::SiteTear::CSS, HTML::SiteTear::Root
Tetsuro KURITA <tkurita@mac.com>
To install HTML::SiteTear, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::SiteTear
CPAN shell
perl -MCPAN -e shell install HTML::SiteTear
For more information on module installation, please visit the detailed CPAN module installation guide.