I want to know programmatically if a view or a layout exists in grails.
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.
I had tried groovyPagesTemplateEngine.getUriWithinGrailsViews('a-view.gsp')
without success.
Can you give me any pointer?
thanks in advance