title: Play 2.0 routes file for different configurations
body: <p>I have a Play 2.0 application with 3 different configurations (application.conf, test.conf and prod.conf)</p>
  
  <p>Now I have a robots.txt file that should be delivered for only test.conf and for the rest environments it should give a 404 if someone tries to access it.</p>
  
  <p>How can I configure my routes file to check if my application is using test.conf? Can I set some variable in test.conf that I can check in the routes file?</p>
  
  <p>Something like this? (pseudo code)</p>
  
  <pre><code>#{if environment = "test"}
  GET     /robots.txt                 controllers.Assets.at(path="/public", file="robots.txt")
  #{/if}
  #{else}
  GET     /robots.txt                 controllers.Application.notFoundResult()
  #{/else}
  </code></pre>