Home

Tcl in your Page

23:29 PM Learn | Basic Setup | Templates | Server Security | Direct URLs | URL Domains

This page shows what you can do with a little bit of Tcl code in a page. Right below the <hr> horizontal line we'll display the result of the Example1 procedure:


Error

invalid command name "Example1"


The body of the Example1 procedure is shown here.

Hint if there is no procedure, try
return "<b>[clock format [clock seconds]]</b>"
Understand that this code runs with all the powers of the web server application. If you want to halt the server, try this.
exit
Ha! tried it, huh? This page runs Example1 in a Safe-Tcl interpreter, although the TML template system normally runs the templates in the main interpreter of your application.
HomeStatusLearnCGI TestsTemplatesAccess ControlReference Manual