public interface TemplateResolver
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ClassLoader templateClassLoader,
TemplateConfiguration configuration)
This method is called once the template engine is initialized, providing the resolver with the
template engine configuration and its template class loader.
|
URL |
resolveTemplate(String templatePath)
Resolvers must implement this method in order to resolve a template, given a template path.
|
void configure(ClassLoader templateClassLoader, TemplateConfiguration configuration)
templateClassLoader - the classloader where templates will be searched forconfiguration - the configuration of the template engineURL resolveTemplate(String templatePath) throws IOException
templatePath - path to the templateIOException