The Tcl Plugin script optionrevised 2 June 2006
scriptoption and other stuff
pluginprocedure above, the Tcl in your script option gets repeated twice on the page, and makes for ghastly looking webpage source. Also you can find ourself in quoting hell. Note that if you use the script attribute on a tcl template page (.tml file) the variables and subcommands inside [...] in the script will be substituted. To protect them on the .tml page use [set var $var] just ahead of the
<embed>tag. And avoid using [...] within the script. If the script is of any size or complexity or is going to be used more than once, then put it in its own .tcl file and src it.