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 :
This is possible by placing a route to the particular asset in your routes definition.
ie. GET /assets/javascripts/initials.js controllers..initials()