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

Re: HTML - sharing design and logic

by perrin (Chancellor)
on Jul 01, 2004 at 15:00 UTC ( #371108=note: print w/ replies, xml ) Need Help??

in reply to HTML - separating design and logic

The point is not to keep ALL logic out of your template but to keep everything except display logic out. Your "another way" approach does not put any application logic (database work, user pref manipulation, etc.) in the template. Having to update both the Perl code and the templates when adding a new thing to be displayed is not a bad thing. There are always these two tasks (update code, update display) even if you have no separate templates.

By the way, I would make each nodelet a separate included template, and just pass a list of nodelet templates to include.

Comment on Re: HTML - sharing design and logic

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2015-12-01 10:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (798 votes), past polls