in reply to HTML embedded in CGI

I know this is a Meditation, but you sound like you're saying you're putting in a lot of possibly unnecessary effort.

You might check out something I have found very handy lately, HTML::Template. It separates out the HTML from your Perl in a reasonably elegant way, without being a wholly different system like Mason or embPerl.

--TQuid

Replies are listed 'Best First'.
RE: RE: HTML embedded in CGI
by FiReWaLL (Scribe) on Jul 24, 2000 at 23:19 UTC

    I know that there are many ways to Seperate HTML from code, I have several myself (Although I didn't knew these packs, I'll look at it, thanks! ^_^) but the thing is, you noticed how much you spend to make the user happy? The software, the thing that makes everithing work is about 5K. (If you make a 5K software (NO HTML), it can make a lot of things), and you need more 500K to make the user happy.

    Once, a client complained that "the bank was too big", and it was making "the page get slow". I made a query thru telnet, it took 30ms to answer, and I got into the site: In the midle, the database query, and around it. I could see 45 Images.

    Figure why the site was slow? ^_^


    ---
    The only thing you regret in life, is the risk you don't take.
RE: RE: HTML embedded in CGI
by davorg (Chancellor) on Jul 25, 2000 at 12:15 UTC

    The Template Toolkit won the "Best New Module" award at TPC last week. It's well worth checking out for this kind of thing. The website includes the slides from the presentation that Andy Wardley gave at the conference.

    --
    <http://www.dave.org.uk>

    European Perl Conference - Sept 22/24 2000, ICA, London
    <http://www.yapc.org/Europe/>