How to render or include files/data in bootstrap.groovy?

Posted by skurt on Stack Overflow See other posts from Stack Overflow or by skurt
Published on 2010-05-17T09:46:19Z Indexed on 2010/05/17 9:50 UTC
Read the original article Hit count: 172

Filed under:
|
|

I want to use some parts of code in different area of bootstrap.groovy. How do I "include" these parts and reuse it?

def init = {
    environments {
        production {
            include("bla.groovy)
            include("blaFoo.groovy)
        }
        test {
            include("blaFoo.groovy)
        }
        development {
            include("bla.groovy)
            include("bla1.groovy)
            include("blaFoo.groovy)
        }
    }
}

© Stack Overflow or respective owner

Related posts about grails

Related posts about bootstrap