Click here to get back home

Namespace for new module: HTML::Template::HTX?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Namespace for new module: HTML::Template::HTX? Tale 05-13-2005
Posted by Tale on May 13, 2005, 7:17 pm
Please log in for more thread options


Hi y'all,

Some time ago (in the summer of 2002) I've written a module for handling
HTML template files, kinda like the HTML::Template and related modules. The
module is built around the HTX template file format, which was used by the
web interface of Microsoft's Index Server back then.

Ever since I've been (professionally) using the module on a number of
websites, either for presenting results from CGI scripts, or for generating
HTML files offline. Recently I've upgraded the module somewhat to fit new
demands from me and my co-workers, and that's when I again thought of
publishing it on CPAN. I've always meant to publish the module, but I never
took the time to actually package it, write more tests etc.

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?

Cheers,

Theo Niessink
MARTINIC Computers




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>




Similar ThreadsPosted
HTML::Template March 5, 2008, 2:40 pm
HTML::Template and __ODD__ July 22, 2005, 7:48 am
HTML::Template not outputting February 25, 2008, 3:11 pm
Mixing HTML::Template and GD::Graph May 14, 2005, 8:53 am
HTML::Template arbitraryily nested recursive loops April 8, 2005, 2:59 pm
HTML::Template, is it possible to nest inside a ? June 4, 2007, 4:58 pm
install HTML::Template - Problem reading cache file / Bad file number July 24, 2004, 7:55 pm
Recall::Template - new module proposal March 14, 2007, 3:21 pm
TL1 module namespace May 12, 2005, 1:13 pm
A module looking for a namespace March 4, 2005, 11:15 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap