Class BlockHelper
- java.lang.Object
-
- com.github.jknack.handlebars.helper.BlockHelper
-
-
Constructor Summary
Constructors Constructor Description BlockHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequence
apply(Object context, Options options)
Apply the helper to the context.
-
-
-
Field Detail
-
NAME
public static final String NAME
The helper's name.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public CharSequence apply(Object context, Options options) throws IOException
Description copied from interface:Helper
Apply the helper to the context.- Specified by:
apply
in interfaceHelper<Object>
- Parameters:
context
- The context object.options
- The options object.- Returns:
- A string result.
- Throws:
IOException
- If a template cannot be loaded.
-
-