>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?
You could combine the two features. Accumulate enough alternating
code/text blocks to get a complete set of Tcl commands (as defined by
"info complete" or Tcl_CommandComplete). Wrap that up as one chunk
of error-protected script. Sometimes the chunk will contain just one
<%...%> block, and sometimes it will be several (with interspersed
raw text blocks). This approach is completely compatible with all ADP
scripts supported by the existing system.
Hmm ... good idea. Even with current model, checking each block with Tcl_CommandComplete would be useful for better "compile" time error checking.
-Jim
