- Create a new package in
/app
, call him com.mycompany.views
- Create a new view in it:
myView.scala.html
- Put it back in action:
return ok(com.mycompany.views.html.myView.render());
As you can see the important part of the html
between the package name and the view name in order to get views compiled without reloading the top of the page. Play using the command: play ~run
source share