Agencement

Un template est une fonction qui peut être appelée depuis un autre.

<!-- views/main.scala.html -->
@(title: String)(content: Html)
<!DOCTYPE html>
<html>
  <head><title>@title</title></head>
  <body>
    <section class="content">@content</section>
  </body>
</html>
<!-- views/index.scala.html -->
@main(title = "Accueil") {
  <h1>Page Accueil</h1>
}

results matching ""

    No results matching ""