public interface Mustache extends Identified
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
A name is used to locate the template contents by means of
TemplateLocator. |
void |
render(Appendable appendable,
Object data)
Render the template.
|
String |
render(Object data)
Render the template.
|
getGeneratedIdString getName()
TemplateLocator. It's sometimes
referenced as an identifier provided by the user. In most cases the name
represents a full (possibly virtual) path of the template.
Note that it's possible to have more than one template with the same name
for a MustacheEngine instance, due to existence
of
MustacheEngine.compileMustache(String, String).String render(Object data)
data - Optional context object (ideally immutable), may be
nullvoid render(Appendable appendable, Object data)
appendable - The appendable to append the rendered template todata - Optional context object (ideally immutable), may be
nullCopyright © 2015. All rights reserved.