Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Templating algorithm - pass in variables vs callback?

by talexb (Chancellor)
on Mar 01, 2005 at 04:51 UTC ( [id://435283]=note: print w/replies, xml ) Need Help??


in reply to Templating algorithm - pass in variables vs callback?

Well, with a wave of one's wand, a hashref can become an object, thus an expensive result can be cached after the first call. That's something I certainly take advantage of as I use Template::Toolkit for my web application.

In your case (above), where you want to do something different based on the platform you're running on, it seems you'd know what platform you were on before you got to the template stage .. unless I'm missing the meaning of your example.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found