Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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

by dws (Chancellor)
on Jan 11, 2003 at 21:16 UTC ( #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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://226127]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-05-27 23:50 GMT
Find Nodes?
    Voting Booth?