public class TemplateResolverFactory extends Object
| Constructor and Description |
|---|
TemplateResolverFactory() |
| Modifier and Type | Method and Description |
|---|---|
DefaultTemplateResolver |
createResolver() |
void |
setTemplateBase(io.bootique.resource.FolderResourceFactory templateBase)
Sets a base location of templates.
|
void |
setTemplateEncoding(String templateEncoding)
Sets template encoding.
|
public void setTemplateBase(io.bootique.resource.FolderResourceFactory templateBase)
template_path = templateBase + resource_package_path + template_name_with_extension
Base defines how the template is resolved. It can be a URL, a special "classpath:" URL, or a file path.
templateBase - A base location of templates.public void setTemplateEncoding(String templateEncoding)
templateEncoding - expected encoding of templates.public DefaultTemplateResolver createResolver()
Copyright © 2019 ObjectStyle LLC. All rights reserved.