[Pas-dev] Simplsitic Dynamic Include
Status: Beta
Brought to you by:
mortis
From: Kyle R. B. <mo...@vo...> - 2004-08-11 14:34:44
|
You may have seen the two recent commit messages. I just added a simplistic dynamic include feature into the base Page object. You can use it like this: <%= $self->dyanamicInclude('file.psp') %> <%= $self->dyanamicInclude('file.psp',{new=>'request',object=>'for',the=>'include'}) %> Right now it only supports psp includes (no bare page object includes), and the request is 'in-place' - it constructs the psp object (page object, compiling if necessary), calls it's execute and returns the output content. It needs refactoring to support full blown internal URIs (should work just like forward_request), but it proves the approach, works, and is very useful as is. Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |