Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: CGI and writing html/javascript/css elegantly

by Unforgiven (Hermit)
on Nov 11, 2009 at 16:29 UTC ( #806540=note: print w/replies, xml ) Need Help??

in reply to CGI and writing html/javascript/css elegantly

Others mentioned using a framework, but if you don't, at the very least, use a template engine like HTML::Template or Template Toolkit.

As a general rule, I consider it a bad sign when there's any HTML in the script at all, ever. Keep presentation and code separate. It makes things much easier, especially over time, and especially for someone else just picking up your code for the first time.

  • Comment on Re: CGI and writing html/javascript/css elegantly

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806540]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-10-22 06:56 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.