Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Two tips for developing with HTML::Template

by dws (Chancellor)
on Jan 11, 2003 at 21:16 UTC ( [id://226127]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Two tips for developing with HTML::Template
in thread Two tips for developing with HTML::Template

Why are you filling bits and pieces into the template here and there and everywhere, instead of accumulating the relevant data in one place during a first, application logic only phase, then passing that to the templating engine in a second, display logic only phase?

Fair question. In the particular case I was wresting with, a page has separate logical components. The components are handled differently by both application logic and presentation logic. I could collect all of the template parameters together from the separate objects that deal with the presentation of each component, caching the parameters until I'm ready to set all of them in one big bang, but that seems like uncessesary work.

  • Comment on Re^4: Two tips for developing with HTML::Template

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found