Re: [Pas-dev] Re: PAS include file directive
Status: Beta
Brought to you by:
mortis
From: Mental P. <me...@ne...> - 2004-01-26 21:40:05
|
Justin Bedard wrote: > > After reviewing the code more last night, the include file directive > could almost be made to happen at runtime... we'd just need access to > a compiler (isn't it already there in the RequestHandler?). The > resolveIncludeFile method could be moved to Org::Bgw::Pas::Page.pm or > Org::Bgw::Pas::Base.pm. That method would pretty much remain the same > except it would compile the file it finds and return the results. > If you're talking about resolving includes every time a page is accessed, you should also keep in mind that that is counter to the point of mod_perl, and in some circumstances the compiled pages will be in memory as a previous version already. I think you might be suprised at runtime by certain undesired behavior. You could always do as kyle mentioned jsp does and use a uri style include, or you could forward to a different psp based on the $criteria in the page. Just some half baked ideas. |