PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/samples/scalate-presentation/src/WEB-INF/scalate/layouts/default.jade

http://github.com/scalate/scalate
Jade | 65 lines | 55 code | 10 blank | 0 comment | 5 complexity | c85eb4d47deaa47035f566c01ab89427 MD5 | raw file
 1-#
 2-# Copyright (C) 2009-2011 the original author or authors.
 3-# See the notice.md file distributed with this work for additional
 4-# information regarding copyright ownership.
 5-#
 6-# Licensed under the Apache License, Version 2.0 (the "License");
 7-# you may not use this file except in compliance with the License.
 8-# You may obtain a copy of the License at
 9-#
10-#     http://www.apache.org/licenses/LICENSE-2.0
11-#
12-# Unless required by applicable law or agreed to in writing, software
13-# distributed under the License is distributed on an "AS IS" BASIS,
14-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-# See the License for the specific language governing permissions and
16-# limitations under the License.
17-#
18
19-@ var body: String
20-@ var title : String = "Scalate Sample"
21- response.setContentType("text/html")
22
23-# Only include the console if it's available and the engine is in dev mode.
24- val include_console = engine.isDevelopmentMode && engine.resourceLoader.exists("/org/fusesource/scalate/console/console_head.scaml")
25
26!!! Basic
27html(lang="en")
28  head
29    meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
30    meta(name="description" content="description goes here")
31    meta(name="keywords" content="keywords,goes,here")
32    meta(name="author" content="Your Name")
33
34    - if (include_console)
35      = include("/org/fusesource/scalate/console/console_head.scaml")
36
37    link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
38
39    - if (include_console)
40      link(href={uri("/css/scalate/console.css")} rel="stylesheet" type="text/css")
41
42    title = title
43  
44  body
45    #navigation
46      .wrapper
47        ul
48          - if (requestUri.startsWith("/index."))
49            li
50              span Home
51          - else
52            li
53              a(href={uri("/")}) Home
54          li
55            a(href="http://scalate.fusesource.org/") Documentation
56
57    #content
58      .wrapper
59        !~~ body
60    
61    #footer
62      .wrapper
63        br
64        - if (include_console)
65          = include("/org/fusesource/scalate/console/console.scaml")