I\'d like to return a .js file from a template in Play!Framework 2.
Here\'s how I did that :
In my views folder, I created a template file :
You can have a scala.js file but you don't call it with views.js.initials.render() but instead js.initials.render()
scala.js
views.js.initials.render()
js.initials.render()
At least with Scala it works with Play 2.2