The module Template.pm is a general purpose Perl utility class to expand
arbitrary template files producing arbitrary text. It was written to make it
easier to build web sites with variable skins, but there are many other uses
for a tool like this.
The usual source for Perl utility classes is CPAN, but you won't find
Template there. I wrote this class because I needed it, and didn't check CPAN
first to see if something similar was already available (I'd just started using
Perl and only had dial up at home at the time). Naturally, there are several
modules on CPAN offering template expansion.
I maintain Template.pm because it is used by several tools I have written,
and in my web sites. It also supports expansion to stream by the use of
iterators, a critical feature for generating very large web pages. And I like
the template syntax, which is compatible with the bracket matching features
of source code editors like vim.
|