title: Scala Play 2.0: Is it possible to use case classes in "routes"
body: <p>My "routes" file looks something like: </p>
  
  <pre><code># Routes
  GET     /         controllers.Application.action(p1 ?= 1, p2 ?= 2, p3 ?= "", p4 ?= "")
  </code></pre>
  
  <p>I want to have something like:</p>
  
  <pre><code>case class FilterGroup(p1: Int, p2: Int, p3: String, p4: String) // defined in controllers 
  </code></pre>
  
  <hr>
  
  <pre><code># Routes
  GET     /         controllers.Application.action(fg ?= FilterGroup(1, 2, "", ""))
  </code></pre>
  
  <p>The advantages is that it will give more extensibility in .scala.html when you need to add or remove some parameters. </p>
  
  <p>Is that possible to implement? </p>