title: How to know programmatically if a view or a layout file exists in grails
body: <p>I want to know programmatically if a view or a layout exists in grails.</p>
  
  <p>I am thinking in obtain the absolutepath and ask for File.exists but I don't know how to obtain this path for every enviroment.</p>
  
  <p>I had tried <code>groovyPagesTemplateEngine.getUriWithinGrailsViews('a-view.gsp')</code> without success.</p>
  
  <p>Can you give me any pointer?</p>
  
  <p>thanks in advance</p>