/samples/scalate-example/src/main/webapp/tableWithLayout.jade

http://github.com/scalate/scalate · Jade · 19 lines · 16 code · 3 blank · 0 comment · 0 complexity · b7f5d393cd835902c60bd57881dd9288 MD5 · raw file

  1. - attributes("layout") = "myLayout.jade"
  2. - val people = Map("James" -> "Mells", "Hiram" -> "Tampa")
  3. h1 Table Example
  4. .main
  5. table
  6. tr
  7. th Name
  8. th Location
  9. - for ((name, location) <- people)
  10. tr
  11. td= name
  12. td= location
  13. .description
  14. :markdown
  15. This is lots and lots of text.
  16. **Scalate** really is rather awesome!