Package org.springframework.shell.style
Class TemplateExecutor
java.lang.Object
org.springframework.shell.style.TemplateExecutor
Template executor which knows to use styling.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedString
Render template with a given attributes.org.jline.utils.AttributedString
renderGroup
(String template, Map<String, Object> attributes) Render template group with a given attributes expecting to find instance namedmain
.
-
Constructor Details
-
TemplateExecutor
-
-
Method Details
-
render
Render template with a given attributes.- Parameters:
template
- the ST templateattributes
- the ST template attributes- Returns:
- a rendered template
-
renderGroup
Render template group with a given attributes expecting to find instance namedmain
.- Parameters:
template
- the ST templateattributes
- the ST template attributes- Returns:
- a rendered template
-