Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Why use HTML instead of CGI? (codediscussion)

by thabenksta (Pilgrim)
on May 08, 2001 at 23:25 UTC ( [id://78933]=note: print w/replies, xml ) Need Help??


in reply to Why use HTML instead of CGI? (code, discussion)

CGI.pm is a very usefull tool, it's great for form data parsing, making dropdown menus, writing cookies, and so on. But, personally I don't like using it for formatting all html output, to me it just complicates things. And If a non-programmer has to get in and change something, they are out of luck. I see absolutley nothing wrong with printing out straight html.

However, as many have mentioned above, Templating is a very nice option. I have started using templates for many reasons. One, the designers don't have to touch my code at all, they just make a pretty little html file and I run that through my program. Two, you can open html templates in GUI editors. While I still do most of my editing in TextPad, sometimes it's just faster and more efficient to do things in dreamweaver. Three, the code just looks better and is easier to manage when you don't have hundreds of lines of HTML to sift through. There are of course more advantages than that, but that was enough to change my mind.

-thabenksta
my $name = 'Ben Kittrell'; $name=~s/^(.+)\s(.).+$/\L$1$2/g; my $nick = 'tha' . $name . 'sta';

Replies are listed 'Best First'.
Re: Re: Why use HTML instead of CGI? (codediscussion)
by princepawn (Parson) on May 09, 2001 at 00:55 UTC
    CGI.pm is a very usefull tool, it's great for form data parsing, making dropdown menus, writing cookies, and so on. But, personally I don't like using it for formatting all html output, to me it just complicates things. And If a non-programmer has to get in and change something, they are out of luck. I see absolutley nothing wrong with printing out straight html.

    Maybe we could get Dreamweaver to output CGI.pm code...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found