I have created separate file for each function in IntelliJ Scala using Play framework. How do I call each of functions?
@services = { html code of service.scala.html }
@navigation ={ html code of navigation.scala.html }
I have contact.scala and many more functions like this.
My application.controller
object Application extends Controller {
def index = Action {
Ok(views.html.index())
}
def navigation = Action {
Ok(views.html.navigation())
}
def services = Action {
Ok(views.html.services())
}
}
My routes
GET / controllers.Application.index
GET /navigation controllers.Application.naigation
GET /services controllers.Application.services
I even have a index.scala.html and main.scala.html. Now how do I call this all in one page?