In Groovy, is it possible to define variables as template first then use them later?
Like predefine body before knowing the content of subject:
body = 'Hello, ${subject}!'
subject = "World"
Then get Hello, World! from the body template (after the content of subject is defined) somehow?