title: Render output format (HTML, JSON, XML) depending on parameter?
body: <p>is there a <em>good</em> or proper way to render the output in Play Framework depending on a parameter? Example:</p>
  
  <p><strong>For HTML:</strong></p>
  
  <pre><code>http://localhost:9000/user/get/5?v=HTML // should render HTML template
  </code></pre>
  
  <p><strong>For JSON:</strong></p>
  
  <pre><code>http://localhost:9000/user/get/5?v=JSON // should render JSON template
  </code></pre>
  
  <p>I think that a request interceptor could have the ability to achieve this, but I have no clue how to start or where to start :-(</p>
  
  <p>Or perhaps, write a general <code>render method</code> that reads the parameters and output as requested, but this seems to me like overkill?</p>