/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. <h1>Table Example</h1>
  5. <div class="main">
  6. <table>
  7. <tr>
  8. <th>Name</th>
  9. <th>Location</th>
  10. </tr>
  11. #for ((name, location) <- people)
  12. <tr>
  13. <td>${name}</td>
  14. <td>${location}</td>
  15. </tr>
  16. #end
  17. </table>
  18. </div>
  19. <div class="description">
  20. <p>
  21. This is lots and lots of text.
  22. <b>Scalate</b> really is rather awesome!
  23. </p>
  24. </div>