HTML-DWT-Simple

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
      $template = new HTML::DWT::Simple(filename => "file.dwt");   
      %dataHash = (
                   doctitle => 'DWT Generated',
                   leftcont => 'some HTML content here'    
                   ); 
      $template->param(%dataHash);
      $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
  new()
 
      new HTML::DWT("file.dwt");
 
      new HTML::DWT(
                    filename => "file.dwt",
                    associate => $q,

Simple.pm  view on Meta::CPAN

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#############################################################
#  HTML::DWT::Simple
#  Whyte.Wolf DreamWeaver HTML Template Module (Simple)
#  Version 1.02
#
#  Copyright (c) 2002 by S.D. Campbell <whytwolf@spots.ab.ca>
#
#  Created 13 March 2002, Modified 05 April 2002
#
#  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.
#
#############################################################
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of

Simple.pm  view on Meta::CPAN

246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
  %dataHash = (
               doctitle => 'DWT Generated',
               leftcont => 'some HTML content here' 
               ); 
  $template->param(%dataHash);
  $html = $template->output();
 
=head1 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. 
 
=head1 METHODS
 
=head2 new()
 
  new HTML::DWT("file.dwt");
 
  new HTML::DWT(
                filename => "file.dwt",



( run in 0.304 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )