history
introducing cgi_app
by anders pearson
Tue 10 Feb 2004 01:28:41
i spent many years writing CGI applications in perl. lately, i've been writing more and more code in python.
even perl's detractors have to admit that perl has an <a href="http://www.cpan.org/">amazing collection of high quality modules</a> available for just about anything you want to do. as much as i've been liking python, when it comes to CGI programming, there were some niceties i missed.
in particular, the powerful combination of <a href="http://search.cpan.org/~lds/CGI.pm-3.04/CGI.pm">CGI</a>, <a href="http://search.cpan.org/~markstos/CGI-Application-3.21/lib/CGI/Application.pm">CGI::Application</a>, and <a href="http://search.cpan.org/author/SAMTREGAR/HTML-Template-2.6/Template.pm">HTML::Template</a> made writing well organized web applications with display logic and business logic cleanly seperated a breeze.
so, scratching an itch, i've ported CGI::Application to python, incorporating some basic CGI.pm like functionality and integrating with Tomas Styblo's <a href="http://htmltmpl.sourceforge.net/">HTML::Template clone</a>.
if you haven't moved on to something more sophisticated like <a href="http://www.zope.org/">Zope</a> or mod_python and just want to write simple CGI applications in python without a lot of hassle, check out my new <a href="http://thraxil.org/code/cgi_app/">cgi_app</a> module.