public final class TemplateManager extends Object
Constructor and Description |
---|
TemplateManager(IEngineConfiguration configuration)
This constructor should only be called directly for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCaches()
Clears the template cache.
|
void |
clearCachesFor(String template)
Clears any existing entries for template of the specified
name at the template cache.
|
void |
parseAndProcess(TemplateSpec templateSpec,
IContext context,
Writer writer) |
org.thymeleaf.engine.ThrottledTemplateProcessor |
parseAndProcessThrottled(TemplateSpec templateSpec,
IContext context) |
TemplateModel |
parseStandalone(ITemplateContext context,
String template,
Set<String> templateSelectors,
TemplateMode templateMode,
boolean useCache,
boolean failIfNotExists) |
TemplateModel |
parseString(TemplateData ownerTemplateData,
String template,
int lineOffset,
int colOffset,
TemplateMode templateMode,
boolean useCache) |
void |
process(TemplateModel template,
ITemplateContext context,
Writer writer) |
public TemplateManager(IEngineConfiguration configuration)
This constructor should only be called directly for testing purposes.
configuration
- the engine configurationpublic void clearCaches()
Clears the template cache.
public void clearCachesFor(String template)
Clears any existing entries for template of the specified name at the template cache.
template
- the name of the template whose entries have to be cleared.public TemplateModel parseStandalone(ITemplateContext context, String template, Set<String> templateSelectors, TemplateMode templateMode, boolean useCache, boolean failIfNotExists)
public TemplateModel parseString(TemplateData ownerTemplateData, String template, int lineOffset, int colOffset, TemplateMode templateMode, boolean useCache)
public void process(TemplateModel template, ITemplateContext context, Writer writer)
public void parseAndProcess(TemplateSpec templateSpec, IContext context, Writer writer)
public org.thymeleaf.engine.ThrottledTemplateProcessor parseAndProcessThrottled(TemplateSpec templateSpec, IContext context)
Copyright © 2016 The THYMELEAF team. All rights reserved.