Class BlockHelper
- java.lang.Object
-
- com.github.jknack.handlebars.helper.BlockHelper
-
- All Implemented Interfaces:
Helper<java.lang.Object>
public class BlockHelper extends java.lang.Object implements Helper<java.lang.Object>
The block helper will replace its section with the partial of the same name if it exists.
If
delete-after-merge
is set totrue
, the partial will be delete once applied it.{{block "title" [delete-after-merge=false]}}
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description BlockHelper()
-
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
-
-