/samples/scalate-presentation/src/WEB-INF/scalate/layouts/default.jade
Jade | 65 lines | 55 code | 10 blank | 0 comment | 5 complexity | c85eb4d47deaa47035f566c01ab89427 MD5 | raw file
- -#
- -# Copyright (C) 2009-2011 the original author or authors.
- -# See the notice.md file distributed with this work for additional
- -# information regarding copyright ownership.
- -#
- -# Licensed under the Apache License, Version 2.0 (the "License");
- -# you may not use this file except in compliance with the License.
- -# You may obtain a copy of the License at
- -#
- -# http://www.apache.org/licenses/LICENSE-2.0
- -#
- -# Unless required by applicable law or agreed to in writing, software
- -# distributed under the License is distributed on an "AS IS" BASIS,
- -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- -# See the License for the specific language governing permissions and
- -# limitations under the License.
- -#
- -@ var body: String
- -@ var title : String = "Scalate Sample"
- - response.setContentType("text/html")
- -# Only include the console if it's available and the engine is in dev mode.
- - val include_console = engine.isDevelopmentMode && engine.resourceLoader.exists("/org/fusesource/scalate/console/console_head.scaml")
- !!! Basic
- html(lang="en")
- head
- meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
- meta(name="description" content="description goes here")
- meta(name="keywords" content="keywords,goes,here")
- meta(name="author" content="Your Name")
- - if (include_console)
- = include("/org/fusesource/scalate/console/console_head.scaml")
- link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
- - if (include_console)
- link(href={uri("/css/scalate/console.css")} rel="stylesheet" type="text/css")
- title = title
-
- body
- #navigation
- .wrapper
- ul
- - if (requestUri.startsWith("/index."))
- li
- span Home
- - else
- li
- a(href={uri("/")}) Home
- li
- a(href="http://scalate.fusesource.org/") Documentation
- #content
- .wrapper
- !~~ body
-
- #footer
- .wrapper
- br
- - if (include_console)
- = include("/org/fusesource/scalate/console/console.scaml")