/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
- -@ val body: String
- -@ val title: String = "Default Title"
- - response.setContentType("text/html")
- !!!
- html
- head
- title= title
- meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
- link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
- body
- #navigation
- .wrapper
- ul
- li
- a(href={uri("/")}) My Layout
- li
- a(href="http://scalate.fusesource.org/") Documentation
- #content
- .wrapper
- h1 Start of MyLayout...
- !~~ body
- h1 End of MyLayout
-
- #footer
- .wrapper
- br