/samples/scalate-sample/src/main/webapp/WEB-INF/layouts/custom.ssp

http://github.com/scalate/scalate · Unknown · 41 lines · 31 code · 10 blank · 0 comment · 0 complexity · 77f17125e7481e5b94b6e1d28c2e1e72 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. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. --%>
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  16. <%@ var body: String %>
  17. <%@ var title : String = "Custom Layout" %>
  18. <html lang="en">
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  21. <title>${title}</title>
  22. </head>
  23. <body>
  24. <h1>Custom Layout</h1>
  25. <p>layout header goes here...</p>
  26. <hr>
  27. <%= body %>
  28. <hr>
  29. <p>layout footer goes here...</p>
  30. </body>
  31. </html>