Tatsuhiko Miyagawa's blog to discuss mostly tech and nerdy stuff.

2009.09.13

YAPC::Asia hackathon progress: PSGI/Plack

CGI.pm is now patched to support PSGI. the API is a little wacky: forces you to do local *ENV (because that's the easiest without touching a lot of code in CGI.pm) and $cgi->header return value would change in PSGI mode. Let's see how markstos/lincoln would like it.

I revived CGI::Application::PSGI that turns CGI::Application object into a PSGI application.

Patched Dancer and Ark which was supporting Plack::Adapter framework. Now that Plack::Adapter is gone, we should create a pretty simple app.psgi file instead. Users can do whatever initialization and middleware stuff in the bootstrap file. More flexibility, and also compatible to what WSGI does with app.wsgi and Rack does with config.ru