title: Play Framework 2.1.0 & AngularJS Integration
body: <p>1) I would like to use AngularJS with Play Framework 2.1.0, with Play serving JSON content as a RESTful server back-end, it appears since the move from version 1.x to 2.x it is not possible to server static HTML content from say the Public folder using the approach below:</p>
  
  <p>Routes.conf:</p>
  
  <pre><code>GET     /                           staticFile:/public/index.html
  </code></pre>
  
  <p>This results in <em>Controller method call expected</em> exception being raised.</p>
  
  <p>The one way I have found that works in Play 2.1.0 is writing an Action method in a Controller like the below:</p>
  
  <pre><code>public static Result index() {
      return ok(Play.application().getFile("public/index.html"));
  }
  </code></pre>
  
  <p>Is this the best approach or is there a more elegant and functional solution to this?</p>
  
  <p>2) Are there any potential downsides or "gotchas" in such an approach to using a client side JavaScript framework for the view instead of the Scala based template engine?</p>
  
  <p>Any pointers would be greatly appreciated.</p>