On Fri, May 18, 2001 at 11:28:06PM -0400, Neil Conway wrote:
> 
> Is there a simple (fast, light) module that generates HTML
> in a similar style to CGI.pm, for use with mod_perl?

You can check out HTML::EasyTags[1] and HTML::TagMaker[2]. They're all kinda
heavyweight, the first requires OO ($html->table(....)) either in the
API or inside of functional wrappers (IIRC), or passing of tags into and
out of wrapper functions, kinda like so:

   print table( 
       -align => "center",
       tr(
           td( "foo" ),
           td( "bar" ),
       ),
   ) ;

I think there's a need (or at last I haven't found a package) that
provides a simple, functional, non-nested (ie lightweight) set like so:

   print
       table( -align => "center" ),
           tr,
               td( "foo" ),
               td( "bar" ),
          _tr,
      _table ;

- Barrie

[1] http://search.cpan.org/doc/DUNCAND/HTML-EasyTags-1.05/EasyTags.pm
[2] http://search.cpan.org/doc/SKUD/CGI-FormMagick-0.4.0/lib/CGI/FormMagick/TagMaker.pm

Reply via email to