Text::Templater is a template engine.
SYNOPSIS
#!/usr/bin/perl
use Text::Templater;
my $tpl = new Text::Templater($tagname);
#Default tagname is "tpl"
$tpl->setSource($some_template_text);
#Set the data source...
$tpl->setData({
name => ['bob', undef, 'daniel'],
color => ['red', 'green', 'blue'],
nested =>
[
{lang => ['fr'], numeric => ['un', 'deux', 'trois', 'quatre']},
{lang => ['en'], numeric => ['one', 'two', 'three', 'four']}
]
});
#Get the result.
$result = $tpl->parse() || die $tpl->getError();
#if you get weird stuff,
#check the $tpl->getWarnings();
Product's homepage
Requirements:
· Perl