I have a JSON template under app/views/Application/movie.json in my Play Framework app.
Normally you use render() to access this template, but that requires an request to server. How can I use this template server side and get the JSON output, without doing another request? Is there something like JsonArray movies = Templates.render("movie.json")?
1 Answer