| Constructor and Description |
|---|
StringLoader() |
| 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"
|
public Reader getReader(String templateName) throws LoaderException
LoadergetReader in interface LoadertemplateName - Name of the templateLoaderException - If template can not be foundpublic void setPrefix(String prefix)
Loaderpublic void setSuffix(String suffix)
Loaderpublic void setCharset(String charset)
LoadersetCharset in interface Loadercharset - Character set used by the loader when building a reader objectCopyright © 2015. All rights reserved.