Skip to content

Instantly share code, notes, and snippets.

@dfilppi
Created March 7, 2013 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfilppi/5112172 to your computer and use it in GitHub Desktop.
Save dfilppi/5112172 to your computer and use it in GitHub Desktop.
A Groovy templating example
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