OUTPUT: inline or template_based?by CodeHound (Beadle)
|on May 28, 2002 at 09:48 UTC||Need Help??|
I am adventuring in the world of perl and web based applications, and I stumbled upon a very important matter regarding which way HTML (or your output of choice) is to be printed: via inline PRINT (something with vars... ENDHTML is surely better) or via TEMPLATE reading, parsing and outputting?
TEMPLATE SPAGHETTI example
I've come to the conclusion ENDHTML printing is more CODE-WISE and maybe more practical to develop, but its surely not open to flexibility. On the other hand, the convenience of template parsing means lots of code for managing errors and exceptions...
Which are your personal ideas on the most PRACTICAL way to proceed?
Thanks in advance