main.scala.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. @(title: String)(content: Html)
  8. <!DOCTYPE html>
  9. <!--
  10. ~ Copyright (C) 2020 Prasoon Joshi
  11. ~
  12. ~ This program is free software: you can redistribute it and/or modify
  13. ~ it under the terms of the GNU General Public License as published by
  14. ~ the Free Software Foundation, either version 3 of the License, or
  15. ~ (at your option) any later version.
  16. ~
  17. ~ This program is distributed in the hope that it will be useful,
  18. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. ~ GNU General Public License for more details.
  21. ~
  22. ~ You should have received a copy of the GNU General Public License
  23. ~ along with this program. If not, see <https://www.gnu.org/licenses/>.
  24. -->
  25. <html lang="en">
  26. <head>
  27. @* Here's where we render the page title `String`. *@
  28. <title>@title</title>
  29. <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
  30. <link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
  31. </head>
  32. <body>
  33. @* And here's where we render the `Html` object containing
  34. * the page content. *@
  35. @content
  36. <script src="@routes.Assets.versioned("javascripts/main.js")" type="text/javascript"></script>
  37. </body>
  38. </html>