To embed the results of an AppleScript into one of your pages, put an AppleScript context into a template. The AppleScript program contained inside the context is executed, and any returned value is displayed in place of the context. Any [xxx] tags inside the context are first substituted for their real values before the AppleScript is executed.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
In this example, the tag [random] is first substituted with a random number, then the resulting AppleScript is executed. Any WebDNA [xxx] tags are allowed inside the AppleScript program, even if they represent complex lookups or searches. The WebDNA tags are always evaluated first, and the resulting text is then executed as an AppleScript program.