org.apache.tapestry5.internal.services
Interface TemplateParser
- All Known Implementing Classes:
- TemplateParserImpl
@UsesMappedConfiguration(value=java.net.URL.class)
public interface TemplateParser
Parses a resource into a ComponentTemplate. The service's configuration
is used to map common document types to internal copies of the corresponding DTD.
- See Also:
PageLoader
parseTemplate
ComponentTemplate parseTemplate(Resource templateResource)
- Parses the given resource into a component template.
- Parameters:
templateResource - the path
- Returns:
- the parsed template contents
- Throws:
RuntimeException - if the resource does not exist, or if there is any kind of parse error
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.