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

http://github.com/scalate/scalate · Jade · 28 lines · 25 code · 3 blank · 0 comment · 0 complexity · e43594d4be198727e528580faabcd299 MD5 · raw file

  1. -@ val body: String
  2. -@ val title: String = "Default Title"
  3. - response.setContentType("text/html")
  4. !!!
  5. html
  6. head
  7. title= title
  8. meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
  9. link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
  10. body
  11. #navigation
  12. .wrapper
  13. ul
  14. li
  15. a(href={uri("/")}) My Layout
  16. li
  17. a(href="http://scalate.fusesource.org/") Documentation
  18. #content
  19. .wrapper
  20. h1 Start of MyLayout...
  21. !~~ body
  22. h1 End of MyLayout
  23. #footer
  24. .wrapper
  25. br