[cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Mark Stosberg
Ron, Thanks for all the feedback. Follow-ups are below. * query() is now req() and new(QUERY=...) is now new(REQUEST=...) I'd go with request(). I see no need to introduce an abbreviation. For reference: Catalyst uses both request() and req() Mojolicious uses only req() Dancer

Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Kurt Lidl
On 11/6/2012 12:24 PM, Mark Stosberg wrote: * Hash keys for new() must now be upper-case now. Ridiculous. Lower case hash keys are the norm throughout Perl. Upper case is SHOUTING. I agree that lower case hash keys are the norm and upper case hash keys are shouting. The choice here weas a

Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Mark Stosberg
On 11/06/2012 12:27 PM, Kurt Lidl wrote: On 11/6/2012 12:24 PM, Mark Stosberg wrote: * Hash keys for new() must now be upper-case now. Ridiculous. Lower case hash keys are the norm throughout Perl. Upper case is SHOUTING. I agree that lower case hash keys are the norm and upper case hash

Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Giannis Economou
On 6/11/2012 8:36 μμ, Mark Stosberg wrote: On 11/06/2012 12:27 PM, Kurt Lidl wrote: On 11/6/2012 12:24 PM, Mark Stosberg wrote: * Hash keys for new() must now be upper-case now. Ridiculous. Lower case hash keys are the norm throughout Perl. Upper case is SHOUTING. I agree that lower case

Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Mark Stosberg
On 11/06/2012 01:55 PM, Giannis Economou wrote: On 6/11/2012 8:36 μμ, Mark Stosberg wrote: On 11/06/2012 12:27 PM, Kurt Lidl wrote: On 11/6/2012 12:24 PM, Mark Stosberg wrote: * Hash keys for new() must now be upper-case now. Ridiculous. Lower case hash keys are the norm throughout Perl.

Re: [cgiapp] authentication and authorization callbacks

2012-11-06 Thread B. Estrade
On Tue, Nov 06, 2012 at 03:32:13PM -0500, Mark Stosberg wrote: You call init in BUILD, but then explicitly run down the callback list in the run() method. What I am wondering is if you could bridge the gap to the other side that would allow one to munge around with the *ordered contents

Re: [cgiapp] authentication and authorization callbacks

2012-11-06 Thread Mark Stosberg
Brett, I think this existing functionality would provide what you want: PSGI::Application-new_hook('authorization'); PSGI::Application-add_callback('authorization', \callback); Kind of, but what it doesn't allow me to do is affect the order in which the lifecycle hooks are executed. I