Enhance Groovy template support in CLI

to allow user to specify the TemplateEngine

Fixes gh-908
This commit is contained in:
Dave Syer
2014-05-20 12:36:32 +01:00
parent 7e9a4035db
commit 334c8142c4
3 changed files with 14 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ class Example implements CommandLineRunner {
@Autowired
private MyService myService
@Override
void run(String... args) {
print template("test.txt", ["message":myService.sayWorld()])
}