HTML::SiteTear - Make a separated copy of a part of the site


HTML-SiteTear documentation  | view source Contained in the HTML-SiteTear distribution.

Index


NAME

Top

HTML::SiteTear - Make a separated copy of a part of the site

VERSION

Top

Version 1.44

SYMPOSIS

Top

 use HTML::SiteTear;

 $p = HTML::SiteTear->new("/dev1/website/index.html");
 $p->copy_to("/dev1/website2/newindex.html");

DESCRIPTION

Top

This module is to make a separated copy of a part of web site in local file system. All linked files (HTML file, image file, javascript, cascading style shieet) from a source HTML file will be copied under a new page.

This module is useful to make a destributable copy of a part of a web site.

METHODS

Top

new

    $p = HTML::SiteTear->new($source_path);

    $p = HTML::SiteTear->new('source_path' => $source_path,
                             'site_root_path' => $root_path,
                             'site_root_url' => $url);

    $p = HTML::SiteTear->new('source_path' => $source_dir,
                             'member_files' => \@pathes);

Make an instance of this module. The path to source HTML file "$source_path" is required as an arguemnt. See ABSOLUTE LINK about 'site_root_path' and 'site_root_url' parameters

copy_to

    $p->copy_to($destination_path);

Copy $source_path into $destination_path. All linked file in $source_path will be copied into directories under $destination_path

ABSOLUTE LINK

Top

AUTHOR

Top

Tetsuro KURITA <tkurita@mac.com>


HTML-SiteTear documentation  | view source Contained in the HTML-SiteTear distribution.