Package com.github.jknack.handlebars
Interface Helper<T>
-
- Type Parameters:
T- The context object.
- All Known Implementing Classes:
BlockHelper,EachHelper,EmbeddedHelper,I18nHelper,IfHelper,LogHelper,LookupHelper,MethodHelper,PartialHelper,PrecompileHelper,StringHelpers,UnlessHelper,WithHelper
public interface Helper<T>Handlebars helpers can be accessed from any context in a template. You can register a helper with theHandlebars.registerHelper(String, Helper)method.- Since:
- 0.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CharSequenceapply(T context, Options options)Apply the helper to the context.
-
-
-
Method Detail
-
apply
CharSequence apply(T context, Options options) throws IOException
Apply the helper to the context.- Parameters:
context- The context object.options- The options object.- Returns:
- A string result.
- Throws:
IOException- If a template cannot be loaded.
-
-