public class AutoDetectTemplateParser extends Object implements TemplateParser
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoDetectTemplateParser.TemplateImplementation |
| Constructor and Description |
|---|
AutoDetectTemplateParser(List<AutoDetectTemplateParser.TemplateImplementation> implementations) |
| Modifier and Type | Method and Description |
|---|---|
Content |
parse(ResourcePath templatePath,
Context ctx)
Load the template from its name (or path).
|
String |
toString() |
public AutoDetectTemplateParser(List<AutoDetectTemplateParser.TemplateImplementation> implementations)
public Content parse(ResourcePath templatePath, Context ctx) throws ParseException
TemplateParserparse in interface TemplateParsertemplatePath - the name of the template to load (or the path)ctx - the context that contains the variable valuesParseException - when the template couldn't be parsed either if the template
couldn't be read or if the template could't be processedCopyright © 2021. All rights reserved.