public interface MustacheEngine
| Modifier and Type | Method and Description |
|---|---|
Mustache |
compileMustache(String templateId,
String templateContent)
Compile the given template.
|
Configuration |
getConfiguration() |
Mustache |
getMustache(String templateId)
Get the compiled template with the given id.
|
String |
getMustacheSource(String templateId) |
void |
invalidateTemplateCache()
Invalidate the cache for both compiled and uncompiled templates.
|
Mustache getMustache(String templateId)
templateId - The template identifiernull if
no such template existsTemplateLocator,
EngineConfigurationKey.TEMPLATE_CACHE_ENABLED,
EngineConfigurationKey.TEMPLATE_CACHE_EXPIRATION_TIMEOUTString getMustacheSource(String templateId)
Mustache compileMustache(String templateId, String templateContent)
templateId - The template identifiertemplateContent - Configuration getConfiguration()
void invalidateTemplateCache()
Copyright © 2014. All Rights Reserved.