[cgiapp] Runmodes in separate modules

Lyle webmaster at cosmicperl.com
Sat Sep 5 13:44:47 EDT 2009


Victor Bruno wrote:
> sub display_dashboard : Path('dashboard/') 

That's catalyst style code. The way I achieve what you are talking about 
is to require in the relevant module based on the runmode name. That way 
if you are in Vanilla CGI you only load the modules you need for the 
current process. During the setup phase I check what modules are in a 
set folder and populate the runmode has based on that.

Hope that makes sense...


Lyle



More information about the cgiapp mailing list