HTML::SiteTear::Page(3p)

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::PageFilter

AUTHOR
Tetsuro KURITA <tkurita@mac.com>