Mike Maraist wrote:
> 
>     Your use of link and tr seems strange to me.  Perhaps it is because
> I've used CGI.pm for so long.  Why not upper-case the first letter as
> CGI does?  eg $el = table( Tr( td() ... ) )

"Doctor doctor, it hurts when I don't do this!"
"Well, do that, then!"


use HTML::AsSubs;
*Tr = \&tr;
print
  table(
    Tr(
       td('stuff'), td('umm')
      ),
    Tr(
       td('things'), td('yeah')
      )
  )->as_HTML;


That reminds me to spiff up Element so comments et al can be in the
syntax tree, for output purposes at least.  And to add CM checking as
an option for AsSubs.  Ohyeah, and to make as_HTML optionally indent.

-- 
Sean M. Burke  [EMAIL PROTECTED]  http://www.netadventure.net/~sburke/

Reply via email to