Class LenientMethodHelper
java.lang.Object
org.onehippo.forge.templating.support.handlebars.helper.LenientMethodHelper
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>
public class LenientMethodHelper
extends Object
implements com.github.jknack.handlebars.Helper<Object>
Lenient Method Helper allowing missing parameters, filling in a reasonable empty value instead.
-
Constructor Summary
ConstructorDescriptionLenientMethodHelper
(Method method, Object source) LenientMethodHelper
(Method method, Object source, boolean lenient) -
Method Summary
-
Constructor Details
-
LenientMethodHelper
-
LenientMethodHelper
-
-
Method Details
-
apply
public Object apply(Object context, com.github.jknack.handlebars.Options options) throws IOException - Specified by:
apply
in interfacecom.github.jknack.handlebars.Helper<Object>
- Throws:
IOException
-