Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Efficiency/Speed question... (files or formats?)

by jarich (Curate)
on Oct 27, 2004 at 00:51 UTC ( #402865=note: print w/ replies, xml ) Need Help??


in reply to Efficiency/Speed question... (files or formats?)

I'm tempted to say neither. In fact I do. Don't do either of those two methods.

Designing, writing, testing and using your very own yet another templating system is hugely inefficient. Likewise doing the same with formats doesn't help a lot either.

If you need things to go fast perhaps you should look at CGI::Fast or mod_perl. That'll cut down the execution time a lot.

Back to the question at hand, however. I would recommend the good practice of using someone else's already well designed, written and tested templating system. For example HTML::Template or Template::Toolkit depending on which one best suits your needs.

Formats are almost a thing of the past (thankfully) and I can say with certainty that you'll appreciate the joys of using templates, sooner or later. You want to use templates, it's a good habit to get into for when you later have to share a project with a graphic designer.

Hope this helps,

jarich


Comment on Re: Efficiency/Speed question... (files or formats?)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (18)
As of 2014-07-11 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (234 votes), past polls