Created
March 7, 2013 21:54
-
-
Save dfilppi/5112172 to your computer and use it in GitHub Desktop.
A Groovy templating example
This file contains 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
def binding=["hosts":ips,"clientPort":"${config.clientPort}"] | |
def zoo = new File('templates/zoo.cfg') | |
engine = new SimpleTemplateEngine() | |
template = engine.createTemplate(zoo).make(binding) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment