HTML::SiteTear::Page - treat HTML files
use HTML::SiteTear::Page; $page = HTML::SiteTear::Page->new($parent, $source_path, $kind); $page->linkpath($path); # usually called from the mothod "change_path" # of the parent object. $page->copy_to_linkpath(); $page->copy_linked_files();
This module is to tread HTML files. It's also a sub class of HTML::SiteTear::Item. Internal use only.
$page = HTML::SiteTear::Page->new('parent' => $parent, 'source_path' => $source_path);
Make an instance of HTML::SiteTear::Page class.
$parent is an instance of HTML::SiteTear::Page which have an link to $source_path. $source_path is a path to a HTML file. $kind must be 'page'.
$page->copy_to_linkpath;
Copy $source_path into new linked path from $parent.
$page->write_data($data)
Write HTML data to the linked path form the parent object. This method is called from HTML::SiteTear::PageFilder.
HTML::SiteTear, HTML::SiteTear::Item, HTML::SiteTear::CSS, HTML::SiteTear::Root, HTML::SiteTear::PageFilter
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.