Class LogHelper
- java.lang.Object
-
- com.github.jknack.handlebars.helper.LogHelper
-
- All Implemented Interfaces:
Helper<java.lang.Object>
public class LogHelper extends java.lang.Object implements Helper<java.lang.Object>
Log a message. Usage:{{log "Look at me!" }} {{log "This is logged" foo "And so is this"}} {{log "Log!" level="error"}} {{#log}} Hi {{name}}! {{/log}}
- Since:
- 4.0.1
-
-
Constructor Summary
Constructors Constructor Description LogHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(java.lang.Object context, Options options)
Apply the helper to the context.
-
-
-
Field Detail
-
INSTANCE
public static final Helper<java.lang.Object> INSTANCE
A singleton instance of this helper.
-
NAME
public static final java.lang.String NAME
The helper's name.- See Also:
- Constant Field Values
-
-