Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: CGI and writing html/javascript/css elegantly

by Unforgiven (Hermit)
on Nov 11, 2009 at 16:29 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found