I'm migrating an Play 2.4 application to 2.5 and now play.Play.application().isProd
is deprecated. I use this in various places in scala.html templates. (To decide weather or not to use minimized javascript.)
It seems unreasonable to pass this in as parameters into every template.
Is there a way to inject the Application
into the template directly?