public interface ITemplateParser
tapestry.TemplateParser service.
Note that this requires a threaded service model.
Note: had to use the 'I' prefix, so that TemplateParser
could keep its name. Otherwise, it makes Spindle support really, really ugly.
| Modifier and Type | Method and Description |
|---|---|
TemplateToken[] |
parse(char[] templateData,
ITemplateParserDelegate delegate,
org.apache.hivemind.Resource resourceLocation)
Parses the template data into an array of
TemplateTokens. |
TemplateToken[] parse(char[] templateData, ITemplateParserDelegate delegate, org.apache.hivemind.Resource resourceLocation) throws TemplateParseException
TemplateTokens.
The parser is decidedly not threadsafe, so care should be taken that only a single thread accesses it.
templateData - the HTML template to parse. Some tokens will hold
a reference to this array.delegate - object that "knows" about defined componentsresourceLocation - a description of where the template originated from,
used with error messages.TemplateParseException