|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Template
A compiled template created by Handlebars.compile(String).
| Method Summary | |
|---|---|
String |
apply(Context context)
Merge the template tree using the given context. |
void |
apply(Context context,
Writer writer)
Merge the template tree using the given context. |
String |
apply(Object context)
Merge the template tree using the given context. |
void |
apply(Object context,
Writer writer)
Merge the template tree using the given context. |
String |
text()
Provide the raw text. |
String |
toJavaScript()
Return a pre-compiled JavaScript version of this template. |
| Method Detail |
|---|
void apply(Object context,
Writer writer)
throws IOException
context - The context object. May be null.writer - The writer object. Required.
IOException - If a resource cannot be loaded.
String apply(Object context)
throws IOException
context - The context object. May be null.
IOException - If a resource cannot be loaded.
void apply(Context context,
Writer writer)
throws IOException
context - The context object. Required.writer - The writer object. Required.
IOException - If a resource cannot be loaded.
String apply(Context context)
throws IOException
context - The context object. Required.
IOException - If a resource cannot be loaded.String text()
String toJavaScript()
throws IOException
IOException - If compilation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||