Package com.codebarrel.api.templates
Interface TemplateRenderer
- All Known Implementing Classes:
MustacheTemplateRenderer
public interface TemplateRenderer
-
Method Summary
-
Method Details
-
render
Renders the template at the given location (looked up via classpath) using the params provided. params can either be a POJO or a Map<String,Object> of parameters.Will throw an IllegalArgumentException if the template specified can't be found.
- Parameters:
locale- the locale of the user making the requesttemplateLocation- the classpath template location.params- A POJO or Map<String, Object> parametersout- The writer to write to.
-