com.github.jknack.handlebars
Interface Helper<T>
- Type Parameters:
T - The context object.
- All Known Implementing Classes:
- BlockHelper, EachHelper, EmbeddedHelper, IfHelper, 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 the Handlebars.registerHelper(String, Helper)
method.
- Since:
- 0.1.0
- Author:
- edgar.espina
apply
CharSequence apply(T context,
Options options)
throws IOException
- Callback method for execute the given method.
- Parameters:
context - The context object (param=0).options - The options object.
- Returns:
- A string result.
- Throws:
IOException - If a template cannot be loaded.
Copyright © 2012. All Rights Reserved.