ANNOUNCEMENT: NEW VERSION: HTML::Template 0.04 
Author Message
 ANNOUNCEMENT: NEW VERSION: HTML::Template 0.04

ANNOUNCEMENT: NEW VERSION: HTML::Template 0.04

NAME

HTML::Template - a Perl module to use HTML Templates

CHANGES

0.04  Fri June 18 12:00:00 1999
    - fixed cacheing - under certain conditions it was totally broken!
    - changed {param} to {param_values} - some older perls complained.
    - die_on_bad_params => 0 now also applied to loop body.
    - added copious comments about how bad m//i is to avoid future
      bug reports about [tT][hH][iI][sS]!
    - added numerous bug fixes and optimizations submitted by Mike
      Blazer, Adriano Nagelschmidt Rodrigues, Andrej Mikus and

DESCRIPTION

This module attempts to make using HTML templates simple and natural.
It extends standard HTML with a few new tags - <TMPL_VAR> and
<TMPL_LOOP>.  The file written with HTML and these new tags is called
a template.  It is usually saved separate from your script - possibly
even created by someone else!  Using this module you fill in the
values for the variables and loops declared in the template.  This
allows you to seperate design - the HTML - from the data, which you
generate in the Perl script.

This module is licenced under the GPL.  See the LICENCE section of the
README.

AVAILABILITY

The module is available on CPAN.  You can get it using CPAN.pm or go
to:

http://www.*-*-*.com/

MOTIVATION

It is true that there are a number of packages out there to do HTML
templates.  On the one hand you have things like HTML::Embperl which
allows you to freely mix Perl with HTML.  On the other hand lie
home-grown variable substitution solutions.  Hopefully the module can
find a place between the two.

One advantage of this module over a full HTML::Embperl-esque solution
is that it enforces an important divide - design and programming.  By
limiting the programmer to just using simple variables and loops in
the HTML, the template remains accessible to designers and other
non-perl people.  The use of HTML-esque syntax goes further to make
the format understandable to others.  In the future this similarity
could be used to extend existing HTML editors/analyzers to support
this syntax.

An advantage of this module over home-grown tag-replacement schemes is
the support for loops.  In my work I am often called on to produce
tables of data in html.  Producing them using simplistic HTML
templates results in CGIs containing lots of HTML since the HTML
itself could not represent loops.  The introduction of loop statements
in the HTML simplifies this situation considerably.  The designer can
layout a single row and the programmer can fill it in as many times as
necessary - all they must agree on is the parameter names.

For all that, I think the best thing about this module is that it does
just one thing and it does it quickly and carefully.  It doesn't try
to replace Perl and HTML, it just augments them to interact a little
better.  And it's pretty fast.

DOCUMENTATION

The documentation is in Template.pm in the form of POD format
perldocs.  Even the above text might be out of date, so be sure to
check the perldocs for the straight truth.

CONTACT INFO


Media ( http://www.*-*-*.com/ ).  I'll be out of email range (in Tunisia!)
from June 27th to July 20th of 1999.  During this period bugs and
suggestions can be sent to my boss here at Vanguard - Jesse

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Sat, 08 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ANNOUNCEMENT: NEW VERSION: HTML::Template 1.4

2. ANNOUNCEMENT: NEW VERSION: HTML::Template 1.3

3. ANNOUNCEMENT: NEW VERSION: HTML::Template 1.2.1

4. ANNOUNCEMENT: NEW VERSION: HTML::Template 1.1

5. ANNOUNCEMENT: NEW VERSION: HTML::Template 1.0

6. ANNOUNCEMENT: NEW VERSION: HTML::Template 0.96

7. ANNOUNCEMENT: NEW VERSION: HTML::Template 0.91

8. ANNOUNCEMENT: NEW VERSION: HTML::Template 0.05

9. ANNOUNCEMENT: NEW VERSION: HTML::Template 0.03

10. ANNOUNCEMENT: NEW VERSION: HTML::Template 0.02

11. ANNOUNCE: TeX::DVI, Hyphen and Font::TFM in version 0.04

12. version 0.04 of drealm bbs

 

 
Powered by phpBB® Forum Software