title: Ratpack: how to render file from classpath?
body: <p>I want to render or send a "static" file from the classpath. Logistically the file comes from a referenced project and is available under classpath root.</p>
  
  <p>My code so far:</p>
  
  <pre><code>  handlers {
  
      get{
        log.info "trying to get index ${file( '/index.html' )}"
        render file( '/index.html' )
      }
  
    }
  </code></pre>
  
  <p>upon calling the url, I'm getting a 404 error page back and in the logs I see:</p>
  
  <blockquote>
    <p>INFO ratpack - trying to get index C:\my-project\build\resources\main\index.html</p>
  </blockquote>
  
  <p>I tried to add a spring-like <code>classpath:</code> prefix with no positive effect.</p>
  
  <p>What am I missing? A <code>BaseDir</code> set up?</p>