I am trying to move my views out of the default views package into mynewpackage.view.xyz. It was not a problem with the controllers.
It seems like they are not compiled at all.
Play 2.0 doc says:
... Note that in Play 2.0, the controllers, models and views package name conventions are now just that and can be changed if needed (such as prefixing everything with com.yourcompany). ...
What am I doing wrong?
/app
let's call it com.mycompany.views
myView.scala.html
return ok(com.mycompany.views.html.myView.render());
As can you see there's important html
part between package name and view name, to get views compiled without reloading the page start Play with command: play ~run
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With