Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: html template in a perl script

by dont_you (Hermit)
on Sep 22, 2003 at 00:25 UTC ( #293057=note: print w/ replies, xml ) Need Help??


in reply to html template in a perl script

I work daily with HTML templates and CGI, and founded that...

- If you keep the template in a separated file, you can drop the template into a browser and look how it looks like.

- If you keep the template in a separated file, you can edit it with an WYSIWYG editor.

- In a CGI enviroment, avoiding to open an extra file will bring a very small performance gain, and very very small if the extra file is already in the OS file cache. Normally, there are some more expensive tasks: forking the process, loading modules, connecting to DB (if any), parsing template, doing some real process...
If you are worried about CGI performance, I would suggest to take a look at SpeedyCGI: mod_perl comparable performance (slower, obvious) under CGI.

Josť


Comment on Re: html template in a perl script

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (20)
As of 2015-07-28 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (256 votes), past polls