Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl Monk, Perl Meditation
 
PerlMonks  

Re: the trend of the presentation layer driving application logic

by iburrell (Chaplain)
on Nov 04, 2003 at 19:46 UTC ( [id://304589]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to the trend of the presentation layer driving application logic

For templating systems, the control and presentation can be separated fairly easily. For example, Template toolkit takes a template name and a hash of data. The control logic decides which template to use and provides the data for the template. Obviously, the template could use embedded code or some complicated object and perform actions. But that misses much of the whole point of using a templating system.

The control decides the operations to perform, what template to show, and gathers the data to fill in the template. The template just presents the data and does not change the state of the system. The template might do some reading from the database but it shouldn't make changes.

  • Comment on Re: the trend of the presentation layer driving application logic

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304589]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.