HTML::SiteTear::CSS - treat cascading style sheet files.
use HTML::SiteTear::CSS; $item = HTML::SiteTear::CSS->new($parent,$source_path,$kind); $item->linkpath($path); # usually called from the mothod "change_path" # of the parent object. $item->copy_to_linkpath(); $item->copy_linked_files();
This module is to treat cascading style sheet files liked from web pages. It's also a sub class of the HTML::SiteTear::Item. Internal use only.
$css = HTML::SiteTear::CSS->new('parent' => $parent, 'source_path' => $source_path);
Make an instance of this moduel. The parent object "$parent" must be an instance of HTML::SiteTear::Page. This method is called from $parent.
$css->css_copy($source_path, $target_path);
Copy a cascading style sheet file "$source_path" into $target_path dealing with internal links. This method is called form the method "copy_to_linkpath".
$item->copy_to_linkpath;
Copy $source_path into new linked path from $parent.
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.