public interface TemplateCache
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all mappings from the cache.
|
void |
evict(TemplateSource source)
Evict the mapping for this source from this cache if it is present.
|
Template |
get(TemplateSource source,
Parser parser)
Return the value to which this cache maps the specified key.
|
void clear()
void evict(TemplateSource source)
source - the source whose mapping is to be removed from the cacheTemplate get(TemplateSource source, Parser parser) throws IOException
source - source whose associated template is to be returned.parser - The Handlebars parser.IOException - If input can't be parsed.Copyright © 2015. All rights reserved.