|
Posted by Tale on May 14, 2005, 1:03 pm
Please log in for more thread options
I wrote: ;-)
> I think the module should be called HTML::Template::HTX, which seems
logical
> and doesn't directly interfere with existing module namespace.
>
> So, any thoughts, anyone?
Oops, I forgot to post the synopsis, so here it is. The full documentation
can (at least for now) be found at:
http://www.martinic.nl/tale/HTX.htm
- Theo
--
NAME
HTML::Template::HTX - Handle HTML Extension template (.htx) files
SYNOPSIS
use HTML::Template::HTX;
$htx = HTML::Template::HTX->new('template.htx') or die "Oops!";
$htx->param('counter' => 0);
$htx->print_header(1);
foreach(qw(I used to care but Things Have Changed)) {
$htx->param(
'counter' => $htx->param('counter')+1,
'Name' => $_,
);
$htx->print_detail;
}
$htx->print_footer;
$htx->close;
template.htx
<HTML><HEAD><TITLE>Sample results</TITLE>
</HEAD><BODY>
<H2>Sample results:</H2>
<%begindetail%>
<%counter%>. <%Name%><BR>
<%enddetail%>
</BODY></HTML>
|