T
- Type used as context for the Handlebars helper.public abstract class HandlebarsHelper<T>
extends java.lang.Object
implements com.github.jknack.handlebars.Helper<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_PREFIX |
static java.lang.String |
ERROR_SUFFIX |
Constructor and Description |
---|
HandlebarsHelper() |
Modifier and Type | Method and Description |
---|---|
protected static RenderCache |
getRenderCache(com.github.jknack.handlebars.Options options) |
protected java.lang.String |
handleError(java.lang.String message)
Handle invalid helper data without exception details or because none was thrown.
|
protected java.lang.String |
handleError(java.lang.String message,
java.lang.String logExclusive,
java.lang.Throwable cause)
Handle invalid helper data with exception details in the log message.
|
protected java.lang.String |
handleError(java.lang.String message,
java.lang.Throwable cause)
Handle invalid helper data with exception details in the log message.
|
public static final java.lang.String ERROR_PREFIX
public static final java.lang.String ERROR_SUFFIX
protected java.lang.String handleError(java.lang.String message)
message
- message to log and returnprotected java.lang.String handleError(java.lang.String message, java.lang.Throwable cause)
message
- message to log and returncause
- which occurred during application of the helperprotected java.lang.String handleError(java.lang.String message, java.lang.String logExclusive, java.lang.Throwable cause)
message
- message to log and returnlogExclusive
- additional information just for the logcause
- which occured during application of the helperprotected static RenderCache getRenderCache(com.github.jknack.handlebars.Options options)