HTML::Chunks 1.53 review
DownloadHTML::Chunks is a simple nested template engine for HTML, XML and XHTML. This class implements a simple text-based template engine
|
|
HTML::Chunks is a simple nested template engine for HTML, XML and XHTML.
This class implements a simple text-based template engine, originally intented to allow web applications to completely separate layout HTML from programming logic. However, the engine is flexible enough to be applied to other text-based situations where templates are helpful, such as generating email messages, XML data files, etc.
SYNOPSIS
my $engine = new HTML::Chunks(@chunkFiles);
$engine->readChunkFile('morechunks.html');
$engine->addChunk($smallChunk, $hugeChunk);
$engine->addNamedChunk('myChunk', $chunk);
$engine->output('myChunk', {
firstName => 'Homer',
lastName => 'Simpson',
meals => &outputMeals
}, @extraData);
my @names = $engine->getChunkNames();
my $chunk = $engine->getChunk('myChunk');
my $oldValue = $engine->setCrush(0);
Requirements:
Perl
HTML::Chunks 1.53 keywords