in reply to Re: CGI.pm HTML shortcuts
in thread CGI.pm HTML shortcuts

Yes, EXACTLY!! Hiring a web designer is what I wanted to do.. but I was sure they wouldn't like the nasty $ signs in the HTML code..

Thanks for the suggestion about templates.. for the moment, this is more or less for myself, I am the only person writing this.. but the team is expected to grow larger soon, and separating the HTML information is something that I would like to do when I finish work completely on the CGI portion...

Replies are listed 'Best First'.
Re: Re: Re: CGI.pm HTML shortcuts
by Rhandom (Curate) on Apr 19, 2001 at 23:54 UTC
    We've done it here for a long time. We have 500,000 to 1 million cgi hits a day. All of them pull the content in from external files that is overridable depending upon which host you are on.

    As for the $ signs. Our html guys haven't cared about it. However, I would suggest using something with a beginning and end delimeter such as __variable__, or ^variable^, rather than $variable. Using beginning and end delimeters avoids the problem of swapping $20.00 or putting a variable inside of \w text (try to swap out ABCDEFG$variableHIJK).

    Even if it is a small operation, having the code external will save you time in the long run.