| <!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"><html></span> |
| <span class="variable-name"><body></span> |
| <span class="type"><h1></span><span class="function-name">Rivet Example</span><span class="type"></h1></span> |
| <span class="type"><? |
| puts "The time is now:" |
| puts [clock format [clock seconds]] |
| ?></span> |
| |
| <span class="variable-name"></body></span> |
| <span class="variable-name"></html></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> |