public interface Mustache extends Identified
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
A name is used to locate the template contents by means of
TemplateLocator. |
void |
render(java.lang.Appendable appendable,
java.lang.Object data)
Render the template.
|
java.lang.String |
render(java.lang.Object data)
Render the template.
|
getGeneratedIdjava.lang.String 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).java.lang.String render(java.lang.Object data)
data - Optional context object (ideally immutable), may be
nullvoid render(java.lang.Appendable appendable,
java.lang.Object data)
appendable - The appendable to append the rendered template todata - Optional context object (ideally immutable), may be
nullCopyright © 2014. All Rights Reserved.