Leslie Mikesell wrote:
>
> What I'm looking for is a 'nestable' way of handling the logic
> flow and HTML construction that will allow a page to be used
> as a stand-alone item (perhaps displayed in a frameset) or
> included in another page, but when it is included I'd like to
> have the option of letting its execution return a status
> that the including page could see before it sends out any
> HTML.
> 

Apache::ASP scripts can be executed standalone or as
sub scripts, with <!--#include file=...--> syntax.
Embperl can do the same with its Execute() routine.

So, Apache::ASP nestable logic is like:

<% if($condition) { %>
  <!--#include file=yes.inc args='yes'-->
<% } else { %>
  <!--#include file=no.inc args='no'-->
<% } %>

In the case of Apache::ASP, you can bail out of a 
subscript at anytime with $Response->End(), which will
halt script execution as a special form of a die.

Apache::ASP furthermore buffers output by default, so
you can kill the script at anytime with an error, and
the user would not get half a script's output, just a 
server error 500.

For more info check out:

  includes              http://www.nodeworks.com/asp/ssi.html
  $Response->End()      http://www.nodeworks.com/asp/objects.html
  BufferingOn config    http://www.nodeworks.com/asp/config.html#BufferingOn

-- Joshua
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to