PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/samples/scalate-example/src/main/webapp/tableSsp.ssp

http://github.com/scalate/scalate
Unknown | 27 lines | 24 code | 3 blank | 0 comment | 0 complexity | f63b1938ad9a48be82081216a0134a35 MD5 | raw file
 1<%
 2  val people = Map("James" -> "Mells", "Hiram" -> "Tampa")
 3%>
 4
 5<h1>Table Example</h1>
 6
 7<div class="main">
 8  <table>
 9    <tr>
10      <th>Name</th>
11      <th>Location</th>
12    </tr>
13    #for ((name, location) <- people)
14    <tr>
15      <td>${name}</td>
16      <td>${location}</td>
17    </tr>
18    #end
19  </table> 
20</div>
21
22<div class="description">
23  <p>
24    This is lots and lots of text.
25    <b>Scalate</b> really is rather awesome!
26  </p>      
27</div>