heddy Boubaker ([EMAIL PROTECTED]) said something to this effect:
> What I meant is a pkg that could generate all known HTML tags, not like
> HTML::StickyForms ...
>
> But all of you guys changed my mind instead of hardcoding the html into my
> handler I'll try to investigate the use of templates files (I've too many
> choices over there). BTW the handler I'm currently writing could be of
> general interest, I'll try to release it to the public community one day so
> you'll all critisize it (or legalize it) ;-)
I recently started looking at the HTML:Stream package, and it looks pretty
interesting. Synopsis:
use HTML::Stream;
my $r = shift;
my $HTML = HTML::Stream($r); # Pass in an object with a print method
# or a GLOB ref, e.g., \*STDOUT
$HTML->A(HREF=>$r->uri)
->text('I am a link to the current page')
->_A;
The only thing(s) I don't like about it are that it calls print on its own,
rather than returning strings, but that is easily fixed. I do like the C++-ish
method of method chaining. The main problem with it, though, is that it won't
plug into existing CGI code, since it calls print on its own. If I decide
to use that, I will modify the file, and probably send a patch to the author.
(darren)
--
When all you have is a hammer, everything looks like a nail. When all
you have is inheritance, everything looks like a hierarchy.