Publisher review:HTML::Template module attempts to make using HTML templates simple and natural. This module attempts to make using HTML templates simple and natural. It extends standard HTML with a few new HTML-esque tags - , , , , and .
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, loops and branches declared in the template. This allows you to separate design - the HTML - from the data, which you generate in the Perl script.
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 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 HTML::Template. Another advantage of this module over home-grown tag-replacement schemes is the support for loops.
HTML::Template 2.9 is a Perl script for Perl Modules scripts design by Sam Tregar.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
HTML::Template module attempts to make using HTML templates simple and natural.
Operating system:Windows / Linux / Mac OS / BSD / Solaris