Ian Kallen wrote:
> 
> Found HTML::ElementRaw -- that did it, disregard the previous note!

Actually, though this works, it's probably not what you want to do.
Rather than try and graft as_HTML() output into an HTML element
structure, you should just add the object ref into the structure and
rely on as_HTML() from the top level object.

Rather than this:
>   $c->cell($row,0)->push_content($a->as_HTML);


You should do this:

   $c->cell($row,0)->push_content($a);

Then later:

   print $c->as_HTML();


That was part of the whole reason for making HTML::ElementTable and
HTML::CalendarMonth into HTML element trees, so that grafting was easy.
If at all possible, save the as_HTML() until you *have* to put content
into a string.

Enjoy,
Matt

Reply via email to