title: Play!, how to create a route with a "_escaped_fragment_" parameter?
body: <p>I'm working with Play! scala 2.4 and I'm trying to create a route with a "_escaped_fragment_" parameter but I can't do that in my routes.conf file. 
  Indeed,</p>
  
  <pre><code>GET /  @application.Application.indexOrSnapshot(_escaped_fragment_: Option[String])
  </code></pre>
  
  <p>returns a compilation error.  </p>
  
  <p>So, I tried to add a sird route like that (as explained in the documentation):</p>
  
  <pre><code>class SirdComponents(context: Context) extends BuiltInComponentsFromContext(context) {
    lazy val router = Router.from {
      case GET(p"/?_escaped_fragment_=$path") =&gt; Action {
        Results.Ok(s"Hello $path")
      }
    }
  }
  </code></pre>
  
  <p>but I don't understand how I can use it, and in particular where have I to place this snippet of code.</p>
  
  <p>What is the best way to do this?</p>