in reply to Creating Stylized Perl Applications With Uniformity (code)
If you use these templating solutions correctly, then most of your CGI scripts will consist of 4 parts:
Most of the template solutions allow you to include other template pieces to provide consistent elements such as button bars, banner ads, and the like. They also allow you to maintain some style across pages (though you should use CSS for this).
Most of my scripts that I have right now, save for start/end_form, and submit buttons, have no CGI.pm's HTML functions in them, instead relying on TT2 for all output. The only reason I keep the form and submit buttons in the script is that I can keep the persistent state CGI variable and the appropriate values for the submit buttons in the same place; what happens in the HTML output otherwise doesn't affect the CGI logic.
|
|---|