Package com.qfs.snl.messages
Interface ITemplateEngine
- All Known Implementing Classes:
VelocityTemplateEngine
public interface ITemplateEngine
Service rendering templates for workflow messages.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionRenders a template from a template as a string.Renders a template from a template as a resource.renderFrom
(String template, Map<String, Object> model) Renders a template from a template as a resource.
-
Method Details
-
render
Renders a template from a template as a string.- Parameters:
template
- the templatemodel
- the model providing the variables of the template- Returns:
- the rendered content
-
render
Renders a template from a template as a resource.- Parameters:
template
- the template resourcemodel
- the model providing the variables of the template- Returns:
- the rendered content
-
renderFrom
Renders a template from a template as a resource.- Parameters:
template
- the template resource as a path Path can be explicit or written with respect to the classpath, by prefixing the path by 'classpath:' or 'cp:'.model
- the model providing the variables of the template- Returns:
- the rendered content
-