----- Original Message -----
Sent: Monday, January 20, 2003 11:10 AM
Subject: Re: [AOLSERVER] adp parsers and aolserver 4.0
differently than the normal ADP parser in that it supported the
following coding style:
... more html ...
    <%
}

...

%>

Does AOLServer 4's ADP parser allow you to break in and out of ADP code
blocks within control structures like this?
No, it doesn't.  Each "chunk" of ADP must be a valid Tcl script as they're all executed independently.  A parser which could handle the above would basically convert the whole page into a single script.  Downside with that solution is an error anywhere in the page would generally result in no output which is why it's not done that way.  Perhaps it could be a config option, maybe mapped to specfic files when the single-script approach would be useful?

-Jim
 
I would love to have it as an option, since my foray into PHP under aolserver I have found that to be a very nice extension.. that way I don't have to craft large chunks of html, convert all the quotes to backslash quotes and then ns_puts it all out..  so I can then change that HTML with dreamweaver instead of having to to the create/convert/ns_puts route over and over..  it increases my productivity quite a bit...
 
also, such an option would make it easier to do an aolserver/tcl extension for Dreamweaver than is currently possible..

Reply via email to