| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <title>HTML/Tcl to Tcl</title> |
| <link rel="stylesheet" href="style.css"> |
| </head> |
| |
| <body> |
| <? prevnext "<h1>HTML/Tcl to Tcl</h1>" ?> |
| |
| ... the blocks of HTML are transformed into "puts" statements. |
| |
| <pre> |
| puts -nonewline <span class="string">" |
| <html> |
| <body> |
| <h1>Rivet Example</h1>"</span> |
| |
| puts <span class="string">"The time is now:"</span> |
| puts [clock format [clock seconds]] |
| puts -nonewline <span class="string">" |
| |
| </body> |
| </html>"</span> |
| </pre> |
| |
| |
| <?footer?> |
| </body> |
| </html> |