Interface TemplatePart
- All Known Implementing Classes:
TextTemplatePart,VariableTemplatePart
public interface TemplatePart
A fragment of the template as segregated by the parser.
-
Method Summary
-
Method Details
-
render
Renders the template part using the bindings as necessary.- Parameters:
bindings- the binding to map parameters with.- Returns:
- the rendered string.
-
extract
Extracts the original template string from the rendered text.- Parameters:
captureGroup- the capture group to use for extraction.- Returns:
- the original string for this template.
-