Package groovy.text
Interface Template
public interface Template
A template is a block of text with an associated binding that can be output to a writer or evaluated to a string.
-
Method Summary
-
Method Details
-
make
Writable make()Creates a writable view of this template using an empty binding.- Returns:
- a writable object that renders this template
-
make
Creates a writable view of this template using the supplied binding.- Parameters:
binding- values available to template expressions; may benullif the implementation permits it- Returns:
- a writable object that renders this template with the given binding
-