Class StTemplateRenderer
java.lang.Object
org.springframework.ai.template.st.StTemplateRenderer
- All Implemented Interfaces:
BiFunction<String,,Map<String, Object>, String> TemplateRenderer
Renders a template using the StringTemplate (ST) v4 library.
This renderer allows customization of delimiters, validation behavior when template variables are missing, and how StringTemplate's built-in functions are handled during validation.
Use the builder() to create and configure instances.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for configuring and creatingStTemplateRendererinstances. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<String,Map<String, Object>, String> - Specified by:
applyin interfaceTemplateRenderer
-
builder
-