HTML::DWT 2.08 review
Download
|
|
HTML::DWT is a Perl module with DreamWeaver HTML Template.
INSTALLATION
Unzip/tar the archive:
tar xvfz HTML-DWT-2.08
Create the makefile
perl Makefile.PL
Make the module (must have root access to install)
make
make test
make install
SYNOPSIS
use HTML::DWT;
$template = new HTML::DWT(filename => "file.dwt");
%dataHash = (
doctitle => 'DWT Generated',
leftcont => 'some HTML content here'
);
$html = $template->fill(%dataHash);
or
use HTML::DWT qw(:Template);
$template = new HTML::DWT(filename => "file.dwt");
$template->param(
doctitle => '< title >DWT Generated< /title >',
leftcont => 'Some HTML content here'
);
$html = $template->output();
A perl module designed to parse a simple HTML template file generated by Macromedia Dreamweaver and replace fields in the template with values from a CGI script.
Requirements:
Perl
HTML::DWT 2.08 search tags