I'm very interested in making a modular site design but haven't 
found the tools yet to allow this with the twist I'm looking for.

Say I have a page that encapsulates some functionality, such as 
sending a form then validating the contents that are returned. I'd 
call that PageB.

PageB could be more than one page or a page calling itself, etc.

When PageA calls PageB, as soon as PageB finishes presenting 
the form it doesn't stop but drops out the bottom and returns 
immediately to PageA.  There are commands in some of the tools 
(Mason and soon Embperl - maybe others) to force it to stop there 
but this doesn't make for the modularity I have in mind.

PageB then gets submitted by the user and it either calls itself 
(using conditionals to then do the data validation) or another page.  
After things are validated Ok, I'd like to have it return right back to 
PageA, just where it left off using a "Return" statement. Thus, 
PageA could call a "PageB" and have it do all it's processing then 
return, just like calling a regular subroutine.

This would allow for much more modular/object oriented web site 
design. The stateless nature of this beast may preclude this type 
of functionality.  My perl skills are medium at best and C is not in 
my scope.  I'm wondering:

1) is this possible?  I expect that someone would have already 
implemented this if it were possible because it is so much like 
regular modular programming with abstraction layers.

2) are there any tools (preferrably perl) out there that support this 
cleanly.  I've worked with Embperl and glanced through the docs of 
Mason, AxKit and TT and didn't see anything looking like this.

Cordially,
Scott

Reply via email to