Class WithHelper
- java.lang.Object
-
- com.github.jknack.handlebars.helper.WithHelper
-
- All Implemented Interfaces:
Helper<java.lang.Object>
public class WithHelper extends java.lang.Object implements Helper<java.lang.Object>
Normally, Handlebars templates are evaluated against the context passed into the compiled method.
You can shift the context for a section of a template by using the built-in with block helper.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description WithHelper()
-
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
-
-