Enhance Groovy template support in CLI
to allow user to specify the TemplateEngine Fixes gh-908
This commit is contained in:
@@ -8,6 +8,7 @@ class Example implements CommandLineRunner {
|
||||
@Autowired
|
||||
private MyService myService
|
||||
|
||||
@Override
|
||||
void run(String... args) {
|
||||
print template("test.txt", ["message":myService.sayWorld()])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user