PageRenderTime 27ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/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. -@ var body: String
  19. -@ var title : String = "Scalate Sample"
  20. - response.setContentType("text/html")
  21. -# Only include the console if it's available and the engine is in dev mode.
  22. - val include_console = engine.isDevelopmentMode && engine.resourceLoader.exists("/org/fusesource/scalate/console/console_head.scaml")
  23. !!! Basic
  24. html(lang="en")
  25. head
  26. meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
  27. meta(name="description" content="description goes here")
  28. meta(name="keywords" content="keywords,goes,here")
  29. meta(name="author" content="Your Name")
  30. - if (include_console)
  31. = include("/org/fusesource/scalate/console/console_head.scaml")
  32. link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
  33. - if (include_console)
  34. link(href={uri("/css/scalate/console.css")} rel="stylesheet" type="text/css")
  35. title = title
  36. body
  37. #navigation
  38. .wrapper
  39. ul
  40. - if (requestUri.startsWith("/index."))
  41. li
  42. span Home
  43. - else
  44. li
  45. a(href={uri("/")}) Home
  46. li
  47. a(href="http://scalate.fusesource.org/") Documentation
  48. #content
  49. .wrapper
  50. !~~ body
  51. #footer
  52. .wrapper
  53. br
  54. - if (include_console)
  55. = include("/org/fusesource/scalate/console/console.scaml")