NAME HTML::DWT - DreamWeaver HTML Template Module 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 => 'DWT Generated', leftcont => 'Some HTML content here' ); $html = $template->output(); DESCRIPTION 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. METHODS Options use HTML::DWT qw(:Template); Using the Template option allows for built in support in HTML::DWT for the HTML::Template invocation syntax (param(), output() etc.) See HTML::Template for more details. It is best to require a version of 2.05 for HTML::DWT to support this option. new() new HTML::DWT("file.dwt"); new HTML::DWT( filename => "file.dwt", associate => $q, case_sensitive => 1, no_includes => 1, path => '/var/www/html', xml => $xml-data, ); Creates and returns a new HTML::DWT object based on the Dreamweaver template 'file.dwt' (can specify a relative or absolute path). The Second instance is recommended, although the first style is still supported for backwards compatability with versions before 2.05. associate: The associate option allows the template to inherit parameter values from other objects. The object associated with the template must have a param() method which works like HTML::DWT's param(). Both CGI and HTML::Template fit this profile. To associate another object, create it and pass the reference scalar to HTML::DWT's new() method under the associate option (see above). case_sensitive: The case_sensitive option allows HTML::DWT to treat template fields in a case-sensitive manner. HTML::DWT's default behavior is to match all fields in a case-insensitive manner (i.e. doctitle is considered the same as DOCTITLE or DocTitle). Set case_sensitive to 1 to over- ride this default behavior. no_includes: HTML::DWT will by default look for any included Dreamweaver library item files (.lbi files) that may be specified in the template using the