Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: CGI.pm for HTML output?

by Michalis (Pilgrim)
on Mar 08, 2002 at 22:35 UTC ( [id://150445]=note: print w/replies, xml ) Need Help??


in reply to CGI.pm for HTML output?

I don't understand the "heredocs" (some module/command I don't know or an idiom I'm unaware of as I'm not American?) but I'll tell you what I do.
I usually do all the processing in the cgi-script and then use HTMLTP (slightly modified to fit my needs) in order to send all the variables I need (and have generated) from the script to a template web page.
That web page usually consists of three or four distinct pages. One or two with the header and LOTS of layout information, the body page that handles the bare presentation of the info and the footer.
The header(s) and the footer are simple pages that get included in the "body" page, and as such I completely seperate my coding from my layout.
I find that way of working EXTREMELY time saving, plus it gives me the opportunity to handle my pages to a web-designer / graphic-artist and not have him mess with my actual info at all :-)
HTMLTP is a Templating module, and i definitely know that there must be a couple more doing the same thing (more or less) out there.
Hope I helped a little bit
Michalis

Replies are listed 'Best First'.
Re: Re: CGI.pm for HTML output?
by jrsmith (Pilgrim) on Mar 08, 2002 at 22:39 UTC
    In this case, I'm both programmer and designer :)... Templating is a tempting idea, and I've used pseudo-templating for projects in the past.. I'll have to look into these suggestions of templating systems..
      Well, I was both programmer and designer, but one day I found:
      a) A much better designer than me :-)
      b) Money to pay him
      c) Many projects that I had to work on, thus limiting my time
      So, I decided to dump designing and go on with coding (which is what I like best :-)
      That was the time that I realised that templating saved my BIG money (one of my projects wasn't templated.. Believe me, it was the last one I created that way).
      Anyway, good luck whichever your choice is.
      We had a lot of discussion of the benefits of various templating modules in this thread.
      HTH
      jg
      _____________________________________________________
      It's not my tree.
Re: Re: CGI.pm for HTML output?
by theguvnor (Chaplain) on Mar 09, 2002 at 04:32 UTC
      Thanks for the link and the info.
      It is, really, extremely useful (though I think not for advanced web programming :-)
      Actually, I was aware of the method, but I didn't know its name.
      Michalis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-26 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found