Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: HTML - sharing design and logic

by kiat (Vicar)
on Jul 01, 2004 at 14:04 UTC ( #371083=note: print w/ replies, xml ) Need Help??


in reply to HTML - separating design and logic

Hi MUHA,

Same sentiment here. Basically, the options are as follows:

1) no attempt at separation - the perl script contains both code and html

2) some attempt at separation - part of the logic is moved to the template

3) strict separation - no html in code

(3) gives you clean and highly maintainable code but is hard to achieve in some cases. I've been through (1) and the result is ugly and difficult-to-maintain code (which has lots of html in it). (2) seems like a neat solution :)


Comment on Re: HTML - sharing design and logic

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2015-07-05 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls