in reply to why use OO nature in CGI?
Personally, I lean toward the templating approach - not because I think it is better than the other techniques, but just because it fits well within my manner of thinking. A friend of mine uses the same templating system (we've been working on it together for some time) but he also uses some home-brew CGI-like directives within his templates to generate the HTML (Warning: only a complete lunatic (or a genius) would dare combine the two). The advantage? He decided last week to convert all his pages to XHTML - all he had to do was modify his directive set. Done.
|
|---|