score:0

Accepted answer

I know one solution. You have to create one file per function.

navigation.scala.html

@()
navigation html code

header.scala.html

@()
<header> html code</header>

And other. You can create it in separate package/folder (mainscala) and import all files:

@import views.html.mainscala._

And add brackets:

<html>
    <body  id="page-top" class="index">
       @navigation()
          @header()
....
    </body>
</html>

Related Query

More Query from same tag