ZM::TemplateMerges runtime data with static HTML or Plain Text template file | |
Download |
ZM::Template Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Maxim Kashliak
- Publisher web site:
- http://search.cpan.org/~maxico/
ZM::Template Tags
ZM::Template Description
Merges runtime data with static HTML or Plain Text template file In an ideal web system, the HTML used to build a web page would be kept distinct from the application logic populating the web page. ZM::Template is a Perl module that tries to achieve this by taking over the chore of merging runtime data with a static HTML template. Template can contain SSI derectives like < !--#include file="..." -- > and < !--#exec cgi="..." -- > It is used ZM::SSI for SSI parsing. If module ZM::SSI not installed SSI derectives will be ignoring.The ZM::Template module can address the following template scenarios : * Single values assigned to tokens * Multiple values assigned to tokens (as in html table rows) * Single pages built from multiple templates (ie: header, footer, body) * html tables with runtime determined number of columnsAn template consists of 2 parts; the boilerplate and the tokens (place holders) where the variable data will sit.A token has the format __tokenName__ and can be placed anywhere within the template file. If it occurs in more than one location, when the data is merged with the template, all occurences of the token will be replaced. Requirements: · Perl
ZM::Template Related Software