exec tclsh "$0" "$@"
proc date {} {
return [exec date "+%d.%m.%Y"]
}
proc date-page {} {
return "
<HTML>
<HEAD>
<TITLE>Das heutige Datum</TITLE>
</HEAD>
<BODY>
Heute ist der <b>[date]</b>.
</BODY>
</HTML>
"
}
proc html-content page {
return "Content-type: text/html
$page"
}
puts [html-content [date-page]]