Mailing List

Flat
Plack so far
User: mcholste
Date: 4/30/2010 11:13 am
Views: 282
Rating: 0
Ok, PSGI/Plack is indeed sliced-bread coolness.  JT, you should know that as of right now, as far as I can find, your slides from the last presentation are the only existence of a "hello world" app on the Internet.  I could not find any other examples of a complete app, which is really important when you're first getting started, so thanks for getting those promptly posted online.

I have to develop a front-end web app (in seven days) that accesses/modifies data from different databases and presents the mingled results to users with LDAP-based authorization on the results.  In the process, I've discovered that you can have Perl handle the HTTP Basic Auth, which is awesome because I need to manually strip out the domain name if someone puts it in, which is pretty much impossible to do if you're letting Apache handle the basic auth, so score one for PSGI.

I particularly love the focus on modularity and the whole "builder" method for deciding what gets implemented.  It's a terrific design and lets you do just about anything you want without sacrificing formality and structure in your app.  I think the Plack::Middlware::Conditional is a real showcase module as you can easily make decisions for how you present things based on any criteria of who's asking (like browser, IP, etc.). 

Ok, so on to my question:  how do I use Plack::Middleware::Log4perl?  I have enabled it in my builder, but how do I actually access it within my app?

--Martin
PreviousNext
Madison Area Perl Mongers