blink has asked for the wisdom of the Perl Monks concerning the following question:

I have a program that produces text output. I want to reformat the data to include such elements as HTML headers, tables, text-formatting, etc. Is there a module that does this? I'm a little unclear about whether or not HTML::Template is what I need.

Replies are listed 'Best First'.
(jeffa) Re: Wrapping output in HTML
by jeffa (Bishop) on Jul 07, 2002 at 15:30 UTC
    I would consider HTML::FromText first. If it doesn't solve your problem fully, then try HTML::Template. The biggest problem i see with HTML::FromText is that is does not generate XHTML, but you might be able to get away with filtering the output through tidy.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re: Wrapping output in HTML
by ehdonhon (Curate) on Jul 07, 2002 at 15:34 UTC