Contents
CGI::Application -- An Introduction
Overview
What is CGI::Application?
Why CGI::Application?
CGI::Application Methodology
Run-Modes
Example Application:
Building the Drinkomat: the Script
Building the Drinkomat: the Module
setup()
mode_param()
start_mode()
run_modes()
param()
Writing a run-mode method: start()
CGI Headers?
print() considered harmful
Caveat Coder
Generating HTML output
Model-View-Controller (MVC) Design Pattern
Why MVC?
C::A and MVC
CGI.pm considered, eh, not so good
Using Templates
Using Templates (con't):
Going back to start()
Using arrays with HTML::Template
Rewriting our start() with Templates:
Using Other Templating Systems
Additional Functions
Additional Functions (con't)
Other CGI Issues
Data::FormValidator example
Other CGI Issues
CGI::Application
(v.2.0)
0