On Mon, 20 Jan 2003, Patrick Spence wrote:

> 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

Life is way too short to code HTML by hand, but being able to break
the Tcl up makes the parser harder to write, and far less robust.

There's another way to do what you're trying to do: register an adp tag
that just holds the tag contents in a global var (this will all run in
the same thread, so globals are fine), then, in a < % % > later, do an
ns_adp_eval of the global you remembered.  If you need to remember
multiple chunks of stuff, use a global array instead of a global var,
and store/recall stuff by name.

It's easy to have large conditional blocks this way, and it's very
WYSIWYG-editor-friendly.

Reply via email to