blob: 414c0cd103163c00c17a57360ece86a82cbcc098 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Embedding Tcl in HTML</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<? prevnext "<h1>Embedding Tcl in HTML</h1>" ?>
Rivet scripts look something like this:
<pre>
<span class="variable-name">&lt;html&gt;</span>
<span class="variable-name">&lt;body&gt;</span>
<span class="type">&lt;h1&gt;</span><span class="function-name">Rivet Example</span><span class="type">&lt;/h1&gt;</span>
<span class="type">&lt;?
puts &quot;The time is now:&quot;
puts [clock format [clock seconds]]
?&gt;</span>
<span class="variable-name">&lt;/body&gt;</span>
<span class="variable-name">&lt;/html&gt;</span>
</pre>
The challenge is to turn that into something that can be executed as
Tcl code. The solution is pretty obvious...
<?footer?>
</body>
</html>