HTML::Chunks 1.53 review

Download
by rbytes.net on

HTML::Chunks is a simple nested template engine for HTML, XML and XHTML. This class implements a simple text-based template engine

License: Perl Artistic License
File size: 10K
Developer: Mark W Blythe and Dave Balmer Jr
0 stars award from rbytes.net

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