Created
March 3, 2010 08:13
-
-
Save enachb/320431 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SiteMap { | |
| static void main(String[] args) { | |
| def binding = new Binding(); | |
| def products = [new Product(name:"ProdName1",productId:"P1000"), new Product(name:"ProdName2",productId:"P1001")] | |
| binding.setVariable "products", products | |
| def shell = new GroovyShell(binding) | |
| String siteMap = shell.evaluate(new File('grails-app/conf/SiteMapConfig.groovy')) | |
| println siteMap | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment