PageRenderTime 34ms CodeModel.GetById 27ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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