main.scala.html 951 B

123456789101112131415161718192021222324
  1. @*
  2. * This template is called from the `index` template. This template
  3. * handles the rendering of the page header and body tags. It takes
  4. * two arguments, a `String` for the title of the page and an `Html`
  5. * object to insert into the body of the page.
  6. *@
  7. @this()
  8. @(title: String)(content: Html)(implicit req: play.api.mvc.RequestHeader)
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. @* Here's where we render the page title `String`. *@
  13. <title>@title</title>
  14. <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")" />
  15. <link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")" />
  16. </head>
  17. <body>
  18. @* And here's where we render the `Html` object containing
  19. * the page content. *@
  20. @content
  21. <script src="@routes.Assets.versioned("javascripts/main.js")" type="text/javascript"></script>
  22. </body>
  23. </html>