@FunctionalInterface public interface Helper extends ConfigurationAware
Class member names in this package sometimes do not make much sense (e.g.
Options.fn()), however we've tried to follow the original
handlebars terminology as much as possible.
MustacheEngineBuilder.registerHelper(String, Helper)| Modifier and Type | Method and Description |
|---|---|
void |
execute(Options options)
Execute the helper.
|
default void |
validate(HelperDefinition definition)
Helper should validate the tag definition (e.g. number of parameters)
during compilation and fail fast if necessary.
|
getConfigurationKeys, initvoid execute(Options options)
options - IOExceptiondefault void validate(HelperDefinition definition)
MustacheException with code
MustacheProblem.COMPILE_HELPER_VALIDATION_FAILURE should be
thrown in case of validation failure occurs.definition - Copyright © 2017. All rights reserved.