The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::SiteTear::Page - treat HTML files

SYMPOSIS

  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();

DESCRIPTION

This module is to tread HTML files. It's also a sub class of HTML::SiteTear::Item. Internal use only.

METHODS

new

    $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'.

copy_to_linkpath

    $page->copy_to_linkpath;

Copy $source_path into new linked path from $parent.

write_data

    $page->write_data($data)

Write HTML data to the linked path form the parent object. This method is called from HTML::SiteTear::PageFilder.

SEE ALOSO

HTML::SiteTear, HTML::SiteTear::Item, HTML::SiteTear::CSS, HTML::SiteTear::Root, HTML::SiteTear::dPageFilter

AUTHOR

Tetsuro KURITA <tkurita@mac.com>