| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <title>Rivet Templates</title> |
| <link rel="stylesheet" href="../templates/wondrous/styles.css" type="text/css" /> |
| </head> |
| |
| <body> |
| <div id="container"> |
| <div id="header"> |
| <h1><a href="../index.html">Rivet</a></h1> |
| <h2 id="slogan">Webscripting for Tcl'ers</h2> |
| <div class="clear"></div> |
| </div> |
| <div id="body"> |
| <div id="content"> |
| <h2>Rivet Templates</h2> |
| <div> |
| <div> |
| Templates let you add a bit of code to your HTML, |
| to add dynamic content to it, or speed up creation |
| of repetitive elements. Templates are appropriate |
| for quick'n'dirty pages, where you just need to do |
| some scripting quickly. But they are also |
| appropriate for the 'display' component of your |
| complex application. |
| </div> |
| <div> |
| <pre class="programlisting"><html> |
| <head><title>Tcl code in a Rivet Template</title></head> |
| <body> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| |
| <? |
| foreach line [chat::model::getlines $user] { |
| puts "$line<br>" |
| } |
| ?> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </body> |
| </html> |
| </pre> |
| </div> |
| </div> |
| |
| |
| |
| <div class="contentbottom"> |
| |
| </div> |
| </div> |
| |
| <div class="sidebar"> |
| <ul> |
| |
| </ul> |
| <ul> |
| |
| </ul> |
| <ul> |
| |
| </ul> |
| </div> |
| <div class="clear"></div> |
| </div> |
| </div> |
| <div id="footer"> |
| <div class="footer-content"> |
| <p><a href="http://www.apache.org/">Apache Software Foundation</a> | Design by <a href="http://www.spyka.net">Free CSS Templates</a> | <a href="http://www.justfreetemplates.com">Free Web Templates</a></p> |
| </div> |
| </div> |
| <div style="text-align: center; font-size: 0.75em;">Design downloaded from <a href="http://www.freewebtemplates.com/">free website templates</a>.</div></body> |
| </html> |
| |