public interface ITemplateParser
Common interface for template parsers, in charge of reading and converting a resolved template into a DOM tree.
All implementations of this interface must be thread-safe.
Modifier and Type | Method and Description |
---|---|
List<Node> |
parseFragment(Configuration configuration,
String fragment)
Parses the document fragment contained in the given String object.
|
Document |
parseTemplate(Configuration configuration,
String documentName,
Reader source)
Parses the document contained in the given Reader object.
|
Document parseTemplate(Configuration configuration, String documentName, Reader source)
Parses the document contained in the given Reader object.
configuration
- the Configuration objectdocumentName
- the document name (optional).source
- the Reader on the document to be parsed (required).List<Node> parseFragment(Configuration configuration, String fragment)
Parses the document fragment contained in the given String object.
configuration
- the Configuration objectfragment
- the String containing the fragmentCopyright © 2016 The THYMELEAF team. All rights reserved.