public interface MustacheEngine
Configuration and template cache. Implementation must be
thread-safe.| Modifier and Type | Field and Description |
|---|---|
static String |
COMPUTING_CACHE_CONSUMER_ID |
| 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.
|
static final String COMPUTING_CACHE_CONSUMER_ID
ComputingCacheMustache getMustache(String templateId)
templateId - The template identifiernull if
no such template existsTemplateLocator,
EngineConfigurationKey.TEMPLATE_CACHE_ENABLED,
EngineConfigurationKey.TEMPLATE_CACHE_EXPIRATION_TIMEOUTString getMustacheSource(String templateId)
templateId - Mustache compileMustache(String templateId, String templateContent)
templateId - The template identifiertemplateContent - Configuration getConfiguration()
void invalidateTemplateCache()
Copyright © 2015. All rights reserved.