-
- All Implemented Interfaces:
public class TemplateManagerThe TemplateManager handles multiple templates adapters.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<Regex, TemplatePort>adapterspublic final static TemplateManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final Stringrender(URL url, Map<String, ?> context, Locale locale)Render a template with a registered template engine. final Map<Regex, TemplatePort>getAdapters()final UnitsetAdapters(Map<Regex, TemplatePort> adapters)-
-
Method Detail
-
render
final String render(URL url, Map<String, ?> context, Locale locale)
Render a template with a registered template engine.
- Parameters:
url- Location of the template.context- Data to use when the template is processed.locale- Locale used to process the template.
-
getAdapters
final Map<Regex, TemplatePort> getAdapters()
-
setAdapters
final Unit setAdapters(Map<Regex, TemplatePort> adapters)
-
-
-
-