public interface Loader
| Modifier and Type | Method and Description |
|---|---|
Reader |
getReader(String templateName)
The reader which will be used by Pebble to read the contents of the
template.
|
void |
setCharset(String charset)
A method for end users to change the charset used by the loader.
|
void |
setPrefix(String prefix)
Optional prefix to help find templates, ex "/WEB-INF/templates/" or
"database_schema."
|
void |
setSuffix(String suffix)
Optional suffix to help find templates, ex ".html", ".peb"
|
Reader getReader(String templateName) throws LoaderException
templateName - Name of the templateLoaderException - If template can not be foundvoid setCharset(String charset)
charset - Character set used by the loader when building a reader objectvoid setPrefix(String prefix)
prefix - Prefix to help find templatesvoid setSuffix(String suffix)
suffix - Suffix to attach to template namesCopyright © 2015. All rights reserved.